Pandas报错说Pyarrow的依赖更新

报错信息

DeprecationWarning: 
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

解释

关于pyarrow未在你的系统上安装的DeprecationWarning警告。这个警告是在告诉你,Python中流行的数据操作库pandas在其下一个主要版本(pandas 3.0)中将需要pyarrow作为依赖项。

pyarrow是一个Python库,它提供了对Apache Arrow数据结构和计算库的Pythonic绑定。它用于更高效的数据类型和与其他库的更好的互操作性。

解决办法

安装一下这个包就可以了。

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyarrow

Leave a Comment