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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…