Skip to content

DOC: allow_duplicate_labels=True #46480

@kwhkim

Description

@kwhkim

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/user_guide/duplicates.html#disallowing-duplicate-labels

Documentation problem

Document says,

Setting allows_duplicate_labels=True on a Series or DataFrame with duplicate labels or performing an operation that introduces duplicate labels on a Series or DataFrame that disallows duplicates will raise an errors.DuplicateLabelError.

But it should be allows_duplicate_labels=False instead of True

Suggested fix for documentation

allows_duplicate_labels=True -> allows_duplicate_labels=False

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions