其他分享
首页 > 其他分享> > pandas.DataFrame.duplicated

pandas.DataFrame.duplicated

作者:互联网

DataFrame.duplicated(selfsubset=Nonekeep='first')

Return boolean Series denoting duplicate rows, optionally only considering certain columns.

Parameters:
subset : column label or sequence of labels, optional

Only consider certain columns for identifying duplicates, by default use all of the columns

keep : {‘first’, ‘last’, False}, default ‘first’
  • first : Mark duplicates as True except for the first occurrence.
  • last : Mark duplicates as True except for the last occurrence.
  • False : Mark all duplicates as True.
Returns:
Series

标签:last,duplicates,DataFrame,Mark,duplicated,True,pandas,columns,first
来源: https://www.cnblogs.com/zjuhaohaoxuexi/p/11914735.html