网络编程
位置:首页>> 网络编程>> Python编程>> python读取几个G的csv文件方法

python读取几个G的csv文件方法

作者:RobbenEmi  发布时间:2023-06-04 08:01:27 

标签:python,G,csv

如下所示:


import pandas as pd
file = pd.read_csv('file.csv',iterator=True)
while True:
 chunk = file.get_chunk(1000)
 print(chunk.head(10))
 print(chunk.tail(10))

来源:https://blog.csdn.net/chang1976272446/article/details/80676197

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com