问题描述
我试图将实木复合地板表转换为熊猫数据帧,并根据文档(enter link description here)避免内存增加一倍,我使用了以下代码;
df = table.to_pandas(split_blocks=True,self_destruct=True)
但是我遇到以下错误;
TypeError: to_pandas() got an unexpected keyword argument 'split_blocks'
现在我已经安装了pyarrow版本0.15.1。运行代码Conda update pyarrow
时,收到消息required packages are installed
。
我可以知道如何纠正此错误。预先感谢。
解决方法
版本0.15.1支持的选项少于最新版本。您可以看到选项here。如果您担心内存不足,可以尝试传递zero_copy=True
。
我不是conda专家,但是您尝试过conda install pyarrow=1.0.1