加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – pandas.read_feather得到一个意外的参数nthreads

发布时间:2020-12-20 11:08:59 所属栏目:Python 来源:网络整理
导读:我尝试将数据帧保存为羽毛格式,但在加载时我得到了错误 os.makedirs('tmp',exist_ok=True)df_hist.to_feather('tmp/historical-raw') 这是加载回数据集 df_hist= pd.read_feather('tmp/historical-raw') 这给出了以下错误 read_feather() got an unexpected
我尝试将数据帧保存为羽毛格式,但在加载时我得到了错误

os.makedirs('tmp',exist_ok=True)
df_hist.to_feather('tmp/historical-raw')

这是加载回数据集

df_hist= pd.read_feather('tmp/historical-raw')

这给出了以下错误

read_feather() got an unexpected keyword argument 'nthreads'

提前致谢

解决方法

尝试替换下面的行

df_hist= pd.read_feather('tmp/historical-raw')

import feather
df_hist=feather.read_dataframe('tmp/historical-raw')

以上变化对我有用

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读