Skip to content

DOC: Index.putmask can accept more than np.ndarray[bool] for mask #63209

@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.Index.putmask.html

Documentation problem

mask can accept 1d arrays of numpy, lists of bool and np.bool, pandas BooleanArray, Index[bool] and Series[bool].

Originated from pandas-dev/pandas-stubs#1505.

Suggested fix for documentation

mask : AnyArrayLike of boolean values

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsIndexRelated to the Index class or subclasses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions