2024-04-18 08:14:38 发布
网友
执行以下代码时:
features_df = pickle.loads(open( "features.dataframe", "rb" ))
其中features.dataframe是文件名, 我得到以下错误:
features.dataframe
TypeError: a bytes-like object is required, not '_io.BufferedReader'
Pandas有相当多的a few ways从存储器中读取数据。在
从评论中你知道你可以简单地使用^{}:
df = pd.read_pickle('features.dataframe')
Pandas有相当多的a few ways从存储器中读取数据。在
从评论中你知道你可以简单地使用^{} :
相关问题 更多 >
编程相关推荐