pandas.DataFrame.drop_duplicates()函數

官方文檔給出的這個函數的作用是Return DataFrame with duplicate rows removed, optionally only considering certain columns.也就是刪除重複的行之後返回一個DataFrame,可以選擇只考慮某些列。 函數原型如下: DataFrame.drop_duplicates(subset=None, keep='first
相關文章
相關標籤/搜索