I have a big dataset and when I try to run this code I get a memory error.
user_by_movie = user_items.groupby(['user_id', 'movie_id'])['rating'].max().unstack()
here is the error:
ValueError: Unstacked DataFrame is too big, causing int32 overflow
I have run it on another machine and it worked fine! how can I fix this error?
See Question&Answers more detail:os