我有一个ASCII数据集,它具有ctrl字段分隔符和\ n作为行分隔符。我正在阅读Python,并想知道如何处理它。我特别希望能够将这些信息读入熊猫数据框。阅读带有字段分隔符的ASCII作为ctrl A和行分隔为Python的 n
我目前有;
import pandas as pd
input = pd.read_csv('000000_0', sep='^A')
的错误,那么我得到的是
_main__:1: ParserWarning: Falling back to the 'python' engine because the 'c' engine does
not support regex separators; you can avoid this warning by specifying engine='python'.
然后我不知道我怎么指定行分隔符太。
任何想法?
在此先感谢!
你有使用通常的方法有问题? – Goyo