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!

4
  • whats your out_shape? Also, see stackoverflow.com/questions/19085280/… Commented Dec 4, 2013 at 16:49
  • 1
    what's your os and architecture? for both machines Commented Dec 4, 2013 at 16:51
  • Working machine: Windows 8 (64b) laptop, iPython 1.0 Not working machine: Windows 7, desktop, iPython 1.0 Commented Dec 4, 2013 at 21:27
  • Sorry but, what's an out_shape? Commented Dec 4, 2013 at 22:35

1 Answer 1

1

Try using low_memory=False:

dataframe = pd.read_csv('url_here', delimiter='|', low_memory=False)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.