Nav*_*jum 9 python pandas feather
我尝试将数据帧保存为羽毛格式,但在加载时我得到了错误
os.makedirs('tmp', exist_ok=True)
df_hist.to_feather('tmp/historical-raw')
Run Code Online (Sandbox Code Playgroud)
这是加载回数据集
df_hist= pd.read_feather('tmp/historical-raw')
Run Code Online (Sandbox Code Playgroud)
这给出了以下错误
read_feather() got an unexpected keyword argument 'nthreads'
Run Code Online (Sandbox Code Playgroud)
提前致谢
小智 12
尝试替换下面的行
df_hist= pd.read_feather('tmp/historical-raw')
Run Code Online (Sandbox Code Playgroud)
同
import feather
df_hist=feather.read_dataframe('tmp/historical-raw')
Run Code Online (Sandbox Code Playgroud)
以上变化对我有用
| 归档时间: |
|
| 查看次数: |
1692 次 |
| 最近记录: |