Skip to content

DOC: dataframe.drop return value description incorrect  #54319

@aliasgar55

Description

@aliasgar55

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop.html

Documentation problem

Return value for the drop function says,
Returns DataFrame or None DataFrame without the removed index or column labels or None if inplace=True.
Instead it returns the dataframe with the droped index and lables

Suggested fix for documentation

documentation should says
Returns DataFrame or None DataFrame with the index or column labels removed or None if inplace=True

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsReshapingConcat, Merge/Join, Stack/Unstack, Explode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions