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
  • 7,665
  • 24
  • 60
  • 93

1 Answers1

1

Try using low_memory=False:

dataframe = pd.read_csv('url_here', delimiter='|', low_memory=False)
chopper
  • 6,649
  • 7
  • 36
  • 53
Shravan
  • 2,553
  • 2
  • 16
  • 19