python读取几个G的csv文件方法
作者:RobbenEmi 时间:2023-06-04 08:01:27
如下所示:
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
标签:python,G,csv
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Java利用套接字实现应用程序对数据库的访问
2024-01-15 19:37:47
![](https://img.aspxhome.com/file/2023/5/99755_0s.png)
详解python时间模块中的datetime模块
2023-09-26 02:41:28
python开发一个解析protobuf文件的简单编译器
2021-08-11 12:01:22
![](https://img.aspxhome.com/file/2023/6/107636_0s.png)
js实现砖头在页面拖拉效果
2024-05-22 10:40:24
![](https://img.aspxhome.com/file/2023/2/123402_0s.jpg)
python爬虫快速响应服务器的做法
2022-09-24 21:05:31
asp查询xml的代码 不刷新页面查询的方法
2011-04-06 11:00:00
在函数间不能传递32个以上参数的疑难问题
2008-12-31 13:31:00
python四种出行路线规划的实现
2022-10-01 18:46:09
![](https://img.aspxhome.com/file/2023/3/90633_0s.png)
SQL2008的sa账户被禁用其他账户无法连接的快速解决方法
2024-01-17 05:12:53
javascript开发中使用onpropertychange,oninput事件解决onchange事件的不足
2024-04-26 17:14:12
ThinkPHP 3.2 版本升级了哪些内容
2023-09-05 04:22:04
Django如何开发简单的查询接口详解
2022-07-06 11:27:57
python中怎么表示空值
2022-02-09 23:59:02
Scrapy框架使用的基本知识
2022-02-23 22:27:27
ie和firefox中css自动换行实现方法
2008-04-08 12:49:00
详解MySQL中DROP,TRUNCATE 和DELETE的区别实现mysql从零开始
2024-01-13 05:43:07
Python Decorator的设计模式演绎过程解析
2021-10-13 14:29:37
Windows环境下vscode-go安装笔记(不支持32位)
2024-04-25 15:01:40
![](https://img.aspxhome.com/file/2023/8/134238_0s.gif)
一些关于SQL2005+ASP.NET2.0的问题
2007-09-23 13:01:00
对numpy中轴与维度的理解
2022-03-20 11:58:33
![](https://img.aspxhome.com/file/2023/7/120257_0s.jpg)