wuju Posted October 24 Report Share Posted October 24 本人想读取一个CSV大型文件,数据很大,如何才能读取某一段时间内的数据,任意时间段数据,直接打开整个数据是打不开的。 Quote Link to comment
Antoine Chalons Posted Thursday at 05:05 PM Report Share Posted Thursday at 05:05 PM 您可以按行读取文件 如果您提供文件的一小部分,我可以帮助您编写一个 vi 来逐行加载文件 Quote Link to comment
wuju Posted Friday at 01:51 AM Author Report Share Posted Friday at 01:51 AM 拆分了一段,大一点数据传输困难,服务器老是断开,导致无法上传,麻烦您试试。 采样数据 2024_10_20 08_27_28_0.csv Quote Link to comment
Antoine Chalons Posted Friday at 03:15 PM Report Share Posted Friday at 03:15 PM 该文件中有四行头文件 (4 rows of header in this file) 下面是一个程序,它将读取四个标题行,然后每次读取其余的 100 行 read csv per chunk of 100 rows.vi 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.