News for hackers. Stuff that matters.
Re:How To Open and Manipulate Large CSV Files On A Mac by coverman on Monday November 04, 2019 @11:48PM (#21449700)
Python + Pandas
Re:How To Open and Manipulate Large CSV Files On A Mac by ekianjo on Tuesday November 05, 2019 @12:56AM (#21450022)
Or R + Tidyverse will do the job nicely too.
Re:How To Open and Manipulate Large CSV Files On A Mac by suslik on Tuesday November 05, 2019 @02:31AM (#21450413)
R without tidyverse (which is just sugar) will do just as nicely.
Re:How To Open and Manipulate Large CSV Files On A Mac by ekianjo on Wednesday November 06, 2019 @09:37AM (#21462970)
Agree. But tidyverse just makes things a lot more elegant to write.
Re:How To Open and Manipulate Large CSV Files On A Mac by appleiigs on Tuesday November 05, 2019 @12:38AM (#21449941)
Python + Pandas + Jupyter Notebook/Lab
Re:How To Open and Manipulate Large CSV Files On A Mac by anst on Tuesday November 05, 2019 @12:56AM (#21450025)
Python + Jupyter OK, but pandas actually reads everything at once, doesn’t it. 100MB is no problem but bigger files could result in high swapping pression.
Re:How To Open and Manipulate Large CSV Files On A Mac by cgufus on Tuesday November 05, 2019 @02:10AM (#21450341)
I definitely agree that with this amount of data, you should move to a more programmatic way to handle it... pandas or R.

Keep in mind that pandas (and probably also R?) internally uses optimized structures based on numpy. So a 10 GB csv, depending on the content, might end up with a much smnaller memory footprint inside pandas.

If you have 10 GB csv, I think you will be happy working with pandas locally even on a Laptop. If you go to csv files with tens of GB, a cloud vm with corresponding memory might serve you well. If you need to handle big-data-scale csvs (hundreds of GB or even >TB), a scalable parallel solution like Spark will be your thing. Before you scale up however, maybe your task allows to pre-filter the data and reduces the amount by orders of magnitude... often, thinking the problem through reduces the amount of metal one needs to throw at the problem...