MemoryError when I merge two Pandas data frames
I have two large csv files (each with more than a million rows and about 300-400MB in size). They are loading fine into data frames using the read_csv function without having to use the chunksize parameter. I even performed certain minor operations on this data like new column generation, filtering, etc. However, when I try to merge these two frames, I get a MemoryError: merge_df = pandas.merge(df1, df2, left_on="Colname1", right_on="Colname2") I have even tried to use SQLite to accomplish the merge, but in vain. The operation takes forever. Mine is a Windows 7 PC with 8GB RAM. The Python vers
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.