2
在運行時:沉默警告在熊貓
mydf = pd.read_csv(p_file, sep=',', error_bad_lines=False, index_col=False)
我得到許多線像下面這樣:
... Skipping line 77432: expected 15 fields, saw 16 Skipping line 77497: expected 15 fields, saw 16 Skipping line 77528: expected 15 fields, saw 16 Skipping line 77560: expected 15 fields, saw 16 Skipping line 77625: expected 15 fields, saw 16 Skipping line 77656: expected 15 fields, saw 16 ...
我怎麼能沉默這些警告?我如何找到Pandas中的警告類列表?