Skip to content

DOC: the default value of duplicates in cut should be "raise" #63377

@cmp0xff

Description

@cmp0xff

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/dev/reference/api/pandas.cut.html

Documentation problem

  • in the definition, we have duplicates: str = "raise",
  • in the docstring, we have duplicates : {default 'raise', 'drop'}, optional, suggesting defaulting to None

Suggested fix for documentation

duplicates : {'raise', 'drop'}, default 'raise'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions