从dask.dataframe.head()删除不必要的输出

时间:2018-08-12 14:58:43

标签: pandas dask

我运行了以下代码:

import dask.dataframe as dd
import csv
html_data=dd.read_csv('html_data.csv',quoting=3,error_bad_lines=False)
html_data.head()

输出为:

b'Skipping line 5: expected 2 fields, saw 228\nSkipping line 6: expected 2 fields, saw 4\nSkipping line 11: expected 2 fields, saw 6\nSkipping line..........

输出显示数据集的前5行,但我想删除之前显示的不必要信息。

0 个答案:

没有答案