CategoricalIndex.drop_duplicates()

pandas.CategoricalIndex.drop_duplicates

CategoricalIndex.drop_duplicates(*args, **kwargs) [source]

Return Index with duplicate values removed

Parameters:

keep : {‘first’, ‘last’, False}, default ‘first’

  • first : Drop duplicates except for the first occurrence.
  • last : Drop duplicates except for the last occurrence.
  • False : Drop all duplicates.

take_last : deprecated

Returns:

deduplicated : Index

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.CategoricalIndex.drop_duplicates.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部