A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/48304 below:

Add ignore_index to Series.drop_duplicates · Issue #48304 · pandas-dev/pandas · GitHub

Feature Type Problem Description

Appears in 1.0, DataFrame.drop_duplicates gained ignore_index: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop_duplicates.html#pandas.DataFrame.drop_duplicates

Motivating issue: #30114
xref: #31725

For API consistency, Series.drop_duplicates should have an ignore_index argument too to perform a reset_index(drop=False)

Feature Description

Probably similar to #30405

Alternative Solutions

Users can just call reset_index(drop=True).

Additional Context

No response


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4