Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process "Killed" Loading Large CSV in Binderhub #47

Open
psychemedia opened this issue Mar 7, 2019 · 0 comments
Open

Process "Killed" Loading Large CSV in Binderhub #47

psychemedia opened this issue Mar 7, 2019 · 0 comments

Comments

@psychemedia
Copy link

Trying to load a 1Gb / 2.5 million rows CSV file into a table on resource limited MyBinder VM, I kept getting a Killed message on the process.

What did work fine was a chunked load using pandas, although without predefining the table is does mean the table structure could end up being anything...:

for chunk in pd.read_csv(datafile, chunksize=2000):
    chunk.to_sql(name=tablename, con=conn, if_exists="append", index=False) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant