@@ -1464,18 +1464,17 @@ 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 positional indicies
1467+ * False: negative values in `indices` indicate positional indices
14681468 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
14721472 other negative values raise a ``ValueError``.
14731473
14741474 fill_value : any, optional
1475- Fill value to use for NA-indicies when `allow_fill` is True.
1475+ Fill value to use for NA-indices when `allow_fill` is True.
14761476 This may be ``None``, in which case the default NA value for
1477- the type is used. For ndarrays, :attr:`numpy.nan` is used. For
1478- ExtensionArrays, a different value may be used.
1477+ the type (``self.dtype.na_value``) is used.
14791478
14801479 Returns
14811480 -------
@@ -1506,7 +1505,7 @@ def take(arr, indices, allow_fill=False, fill_value=None):
15061505 >>> from pandas.api.extensions import take
15071506
15081507 With the default ``allow_fill=False``, negative numbers indicate
1509- positional indicies from the right.
1508+ positional indices from the right.
15101509
15111510 >>> take(np.array([10, 20, 30]), [0, 0, -1])
15121511 array([10, 10, 30])
@@ -1525,8 +1524,7 @@ def take(arr, indices, allow_fill=False, fill_value=None):
15251524 if not is_array_like (arr ):
15261525 arr = np .asarray (arr )
15271526
1528- # Do we require int64 or intp here?
1529- indices = np .asarray (indices , dtype = 'int' )
1527+ indices = np .asarray (indices , dtype = np .intp )
15301528
15311529 if allow_fill :
15321530 # Pandas style, -1 means NA
@@ -1552,7 +1550,7 @@ def take_nd(arr, indexer, axis=0, out=None, fill_value=np.nan, mask_info=None,
15521550 Input array.
15531551 indexer : ndarray
15541552 1-D array of indices to take, subarrays corresponding to -1 value
1555- indicies are filed with fill_value
1553+ indices are filed with fill_value
15561554 axis : int, default 0
15571555 Axis to take from
15581556 out : ndarray or None, default None
0 commit comments