pandas.DataFrame.drop_duplicates()函数

官方文档给出的这个函数的作用是Return DataFrame with duplicate rows removed, optionally only considering certain columns.也就是删除重复的行之后返回一个DataFrame,可以选择只考虑某些列。 函数原型如下: DataFrame.drop_duplicates(subset=None, keep='first
相关文章
相关标签/搜索