码迷,mamicode.com
首页 > 其他好文 > 详细

pandas.DataFrame.duplicated

时间:2019-11-23 00:00:36      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:span   ssi   series   set   fir   ted   perm   util   cert   

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

pandas.DataFrame.duplicated

标签:span   ssi   series   set   fir   ted   perm   util   cert   

原文地址:https://www.cnblogs.com/zjuhaohaoxuexi/p/11914735.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!