Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 pandas.HDFStore 读取 .h5 文件
使用此代码:
import pandas as pd store = pd.HDFStore('store.h5')
它有效,尝试这行代码时会出现问题
df1 = store['df1']
它返回此错误:
“UnicodeDecodeError:‘ascii’编解码器无法解码位置 2108 中的字节 0xc3:序数不在范围内 (128)”
我尝试了此链接中的解决方案,但它也不起作用。
所以请帮我解决这个错误。
有不同的编码,通常很难找到哪一种。尝试编码='ISO-8859-1'