Conversation

my data was too big for google sheets, so i installed and learned python. but now it's too big for my computer, python won't run it. off to buy a new computer i guess?
257
738
Write a function which reads only say 100 lines, processes them, then deletes them from memory and only keeps a basic summary. That way you never overload memory with too much at once
1
Show replies
Are you using the default csv module in python? I'm pretty sure that already does read one row at a time. If you can process that one row at a time with a for loop or generator expression, that is very likely to use less memory.