我在使用羽化格式导出数据时遇到问题。我已经使用安装包:
conda install feather-format -c conda-forge
但是,当我使用 pd.to_feather() 时,我收到一条错误消息,提示我安装软件包(已安装)。
ImportError: the feather-format library is not installed you can install via conda conda install feather-format -c conda-forge or via pip pip install -U feather-format
我也尝试过使用 pyarrow,但我收到另一个错误,说
ImportError: cannot import name 'cpu_count'
你能告诉我我做错了什么吗? 谢谢
请您参考如下方法:
Feather 在 pyarrow 模块中找到了新家,因此无需再安装 Feather。
我可以推荐你看看Feather format update: Whence and Whither? ,这解释了为什么并且通常是对更改的一个很好的小走查加上 pyarrow 和遗留 Feather 模块之间的基准 - 有趣的是因为我们都出于性能原因使用该格式:-)
