python ValueError: I/O operation on closed file.

heymaybe |浏览4030次
2018/12/03 10:19

chunker=pd.read_csv("ch06\\ex2.csv",engine='python',chunksize=100)

tot=pd.Series([])

for piece in chunker:

    tot=tot.add(piece['key'].value_counts(),fill_value=0)

tot=tot.sort_value(ascending=False)

ValueError: I/O operation on closed file.

收藏关注
全部回答(0)
0人关注该问题
 加载中...