Answers for "TypeError: unhashable type: 'list' drop duplicates"

0

TypeError: unhashable type: 'list' drop duplicates

#convert hte df to str type, drop duplicates and then select the rows from original df.
df.loc[df.astype(str).drop_duplicates().index]
Posted by: Guest on September-16-2021

Code answers related to "TypeError: unhashable type: 'list' drop duplicates"

Python Answers by Framework

Browse Popular Code Answers by Language