on-internet
← Community

TypeError: 'Series' objects are mutable, thus they cannot be hashed

Stack Overflow ·

I know this error is common, I tried some solutions I looked up and still can't understand what is wrong. I guess it is due to the mutable form of row and row1, but i can't figure it out What am I trying to do ? I have 2 dataframes. I need to iterate over the rows of the first 1, and for each line of the first one iterate through the second and check the value of the cell for some columns. My code and different attempts : a=0 b=0 for row in Correction.iterrows(): b+=1 for row1 in dataframe.iterrows(): c+=1 a=0 print('Handling correction '+str(b)+' and deal '+str(c)) if (Correction.loc[row,['BO

Comments

Sign in or sign up to comment and upvote.

No comments yet.