ディスクから読み取った be2 ファイルであるオブジェクトがio.BytesIO
あり、列ヘッダーを table/に追加します。iostream
iostream
f = io.BytesIO()
f.write(b'A,B,C,D\n')
f.write(iostream.getvalue())
pd.read_table(f, sep=',', index_col=False, error_bad_lines=False, encoding='utf-8', dtype=type_map)
しかし、それは私にエラーを与えました、
pandas.errors.EmptyDataError: No columns to parse from file
この問題を解決する方法を考えています。
また試した
f = io.StringIO()
f.write('A,B,C,D\n')
f.write(iostream.getvalue().decode())
pd.read_table(f, sep=',', index_col=False, error_bad_lines=False, encoding='utf-8', dtype=type_map)
エラーが発生しました
pandas.errors.ParserError: Error tokenizing data. C error: Calling read(nbytes) on source failed. Try engine='python'.