1

I'm running exactly the same one line code on two similar machines to read a 1 GB csv file.

dataframe = pd.read_csv('url_here', delimiter='|')

One machine reads it correctly, the other one gives me an empty memory error ("MemoryError:")

Both machines have 8 GB ram and an i7 processor.

What could cause this? Is there a way to increase memory availability for Python?

Thanks!

Community
  • 1
  • 1
Alexis Eggermont
  • 6,775
  • 19
  • 54
  • 88

1 Answers1

1

Try using low_memory=False:

dataframe = pd.read_csv('url_here', delimiter='|', low_memory=False)
chopper
  • 6,399
  • 6
  • 34
  • 53
Shravan
  • 2,303
  • 2
  • 15
  • 19