📜  TypeError: unhashable type: 'list' drop duplicates - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:43.825000             🧑  作者: Mango

代码示例1
#convert hte df to str type, drop duplicates and then select the rows from original df.
df.loc[df.astype(str).drop_duplicates().index]