Skip to content

Commit f3b91ca

Browse files
committed
doc fixup
1 parent fbc4425 commit f3b91ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/core/algorithms.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1464,8 +1464,8 @@ def take(arr, indices, allow_fill=False, fill_value=None):
14641464
allow_fill : bool, default False
14651465
How to handle negative values in `indices`.
14661466
1467-
* False: negative values in `indices` indicate indexing from
1468-
the right (the default). This is similar to :func:`numpy.take`.
1467+
* False: negative values in `indices` indicate positional indicies
1468+
from the right (the default). This is similar to :func:`numpy.take`.
14691469
14701470
* True: negative values in `indices` indicate
14711471
missing values. These values are set to `fill_value`. Any other
@@ -1506,7 +1506,7 @@ def take(arr, indices, allow_fill=False, fill_value=None):
15061506
>>> from pandas.api.extensions import take
15071507
15081508
With the default ``allow_fill=False``, negative numbers indicate
1509-
slices from the right.
1509+
positional indicies from the right.
15101510
15111511
>>> take(np.array([10, 20, 30]), [0, 0, -1])
15121512
array([10, 10, 30])

pandas/core/arrays/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -470,17 +470,17 @@ def take(self, indices, allow_fill=False, fill_value=None):
470470
Parameters
471471
----------
472472
indices : sequence of integers
473-
Indices to be taken. See Notes for how negative indicies
474-
are handled.
473+
Indices to be taken.
475474
allow_fill : bool, default False
476475
How to handle negative values in `indices`.
477476
478477
For False values (the default), negative values in `indices`
479-
indiciate slices from the right.
478+
indiciate positional indicies from the right.
480479
481480
For True values, indicies where `indices` is ``-1`` indicate
482481
missing values. These values are set to `fill_value`. Any other
483482
other negative value should raise a ``ValueError``.
483+
484484
fill_value : any, optional
485485
Fill value to use for NA-indicies when `allow_fill` is True.
486486
This may be ``None``, in which case the default NA value for

0 commit comments

Comments
 (0)