Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory Error
#4
You are obviously running out of memory.

pandas is a memory hog - see this article. Quoting the author

Quote:my rule of thumb for pandas is that you should have 5 to 10 times as much RAM as the size of your dataset

You probably should find a way to split your data into chunks and process it in smaller portions - or increase the amount of available RAM
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Memory Error - by jason413 - May-24-2018, 10:07 AM
RE: Memory Error - by j.crater - May-24-2018, 10:15 AM
RE: Memory Error - by jason413 - May-24-2018, 10:28 AM
RE: Memory Error - by volcano63 - May-24-2018, 11:49 AM
RE: Memory Error - by DeaD_EyE - May-24-2018, 12:02 PM
RE: Memory Error - by wavic - May-24-2018, 12:19 PM
RE: Memory Error - by nilamo - Jun-21-2018, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Memory error while recursively adding np.arrays Afterdarkreader 0 4,087 Dec-22-2017, 04:02 PM
Last Post: Afterdarkreader
  Memory error in python 2.7 Afterdarkreader 4 6,613 Dec-20-2017, 02:26 AM
Last Post: Afterdarkreader
  Memory Error rajeev1729 1 40,421 Sep-26-2017, 09:50 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020