Skip to content

Commit 4b566e7

Browse files
Chiwendaiyuecloudboat
andauthored
DOC: fix axis parameter description in Index.take (#63199)
Co-authored-by: cloudboat <15851404+cloudboat111@user.noreply.gitee.com>
1 parent 95624ca commit 4b566e7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/core/indexes/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,8 +1180,8 @@ def astype(self, dtype: Dtype, copy: bool = True):
11801180
----------
11811181
indices : array-like
11821182
Indices to be taken.
1183-
axis : int, optional
1184-
The axis over which to select values, always 0.
1183+
axis : {0 or 'index'}, optional
1184+
The axis over which to select values, always 0 or 'index'.
11851185
allow_fill : bool, default True
11861186
How to handle negative values in `indices`.
11871187
@@ -1234,8 +1234,8 @@ def take(
12341234
----------
12351235
indices : array-like
12361236
Indices to be taken.
1237-
axis : int, optional
1238-
The axis over which to select values, always 0.
1237+
axis : {0 or 'index'}, optional
1238+
The axis over which to select values, always 0 or 'index'.
12391239
allow_fill : bool, default True
12401240
How to handle negative values in `indices`.
12411241

pandas/core/indexes/multi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,8 +2303,8 @@ def take(
23032303
----------
23042304
indices : array-like
23052305
Indices to be taken.
2306-
axis : int, optional
2307-
The axis over which to select values, always 0.
2306+
axis : {0 or 'index'}, optional
2307+
The axis over which to select values, always 0 or 'index'.
23082308
allow_fill : bool, default True
23092309
How to handle negative values in `indices`.
23102310

0 commit comments

Comments
 (0)