swifter是提高pandas性能的第三方包,主要是apply函数。
接口支持范围:
运行环境和安装
操作系统是Win10 64,pandas版本是2.2.2,swifter版本是1.4.0。
pip安装
$ pip install -U pandas # upgrade pandas
$ pip install swifter # first time installation
$ pip install swifter[notebook] # first time installation including dependency for rich progress bar in jupyter notebooks
$ pip install swifter[groupby] # first time installation including dependency for groupby.apply fu