我在中没有看到一个,尽管警告建议应该是可用的:
In [2]: from pandas.util.testing import assert_produces_warning/home/mghenis/anaconda3/bin/ipython:1: FutureWarning: pandas.util.testing is deprecated.Use the functions in the public
我想将CSV列表读取到数据帧中。然而,当文件的标题行与数据本身不匹配(即元数据或额外的空行)时,我很难捕捉到一个错误。此错误是一个“CParserError”(请参阅底部的错误消息)。我当前的解决方案是使用try-except语句, #read file #give me an error messageNameError: name 'CParserError'