TypeError: drop_duplicates() got an unexpected keyword argument ‘take_last’
1. pandas 移除某个列包含重复值得行
1.1 保留第一个
# ``inplace`` If ``True``, performs operation inplace and returns None.
df = df.drop_duplicates([*,*,], keep="first", inplace=False)
1.2 保留最后一个
df = df.drop_duplicates([*,*,], keep="last", inplace=False)
1.3 重复全部删除
df = df.drop_duplicates([*,*,], keep=False, inplace=False)