Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Reading "big" csv files #142

Open
nlhnt opened this issue Mar 15, 2022 · 2 comments
Open

Reading "big" csv files #142

nlhnt opened this issue Mar 15, 2022 · 2 comments

Comments

@nlhnt
Copy link

nlhnt commented Mar 15, 2022

Hello,
I increased the heapsize to 16G for my kernel with krangl, but reading a CSV file which has 7 columns (int64, str, str, str, int64, str, str) and about 4*e6 rows (almost 800M with utf8 encoding) didn't quite work.
I am stuck with heap size error, Python's pandas was able to load it without much trouble. Unfortunately I face a task where I have to iterate through this table row by row, and Python's loops are not quite useful here (I mean they work, but it not takes a couple of hours to work through that).
Julia's DataFrame.jl was able to load this frame into memory as well (it really is not that big, takes around 2G of RAM on a Windows machine).

@holgerbrandl
Copy link
Owner

This is indeed a problem with the underlying current implementation which is known to not scale well.

@nikitinas Did you come up with a more memory-efficient way to read big tables in https://github.com/Kotlin/dataframe

@Soldalma
Copy link

I have the same problem with a dataframe of 25000 rows and 700 columns. Actually even after I delete most of the rows the problem persists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants