Skip to content

DOC: axis argument for take says None is acceptable, but that is incorrect. #61408

Closed
@Dr-Irv

Description

@Dr-Irv

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/pandas-docs/stable/reference/api/pandas.DataFrame.take.html#pandas.DataFrame.take

Documentation problem

The axis argument is documented as: "axis {0 or ‘index’, 1 or ‘columns’, None}, default 0" . But None is not accepted. So it should be removed from the docs.

See pandas-dev/pandas-stubs#1209 (comment) for an example.

Suggested fix for documentation

Remove None from that sentence.

Metadata

Metadata

Assignees

Labels

AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffDocs

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions