@@ -3365,7 +3365,7 @@ def _take(self, indices, axis=0, is_copy=True):
3365
3365
3366
3366
return result
3367
3367
3368
- def take (self , indices , axis = 0 , convert = None , is_copy = True , ** kwargs ):
3368
+ def take (self , indices , axis = 0 , is_copy = True , ** kwargs ):
3369
3369
"""
3370
3370
Return the elements in the given *positional* indices along an axis.
3371
3371
@@ -3380,15 +3380,6 @@ def take(self, indices, axis=0, convert=None, is_copy=True, **kwargs):
3380
3380
axis : {0 or 'index', 1 or 'columns', None}, default 0
3381
3381
The axis on which to select elements. ``0`` means that we are
3382
3382
selecting rows, ``1`` means that we are selecting columns.
3383
- convert : bool, default True
3384
- Whether to convert negative indices into positive ones.
3385
- For example, ``-1`` would map to the ``len(axis) - 1``.
3386
- The conversions are similar to the behavior of indexing a
3387
- regular Python list.
3388
-
3389
- .. deprecated:: 0.21.0
3390
- In the future, negative indices will always be converted.
3391
-
3392
3383
is_copy : bool, default True
3393
3384
Whether to return a copy of the original object or not.
3394
3385
**kwargs
@@ -3449,11 +3440,6 @@ class max_speed
3449
3440
1 monkey mammal NaN
3450
3441
3 lion mammal 80.5
3451
3442
"""
3452
- if convert is not None :
3453
- msg = ("The 'convert' parameter is deprecated "
3454
- "and will be removed in a future version." )
3455
- warnings .warn (msg , FutureWarning , stacklevel = 2 )
3456
-
3457
3443
nv .validate_take (tuple (), kwargs )
3458
3444
return self ._take (indices , axis = axis , is_copy = is_copy )
3459
3445
0 commit comments