@@ -3365,7 +3365,7 @@ def _take(self, indices, axis=0, is_copy=True):
33653365
33663366 return result
33673367
3368- def take (self , indices , axis = 0 , convert = None , is_copy = True , ** kwargs ):
3368+ def take (self , indices , axis = 0 , is_copy = True , ** kwargs ):
33693369 """
33703370 Return the elements in the given *positional* indices along an axis.
33713371
@@ -3380,15 +3380,6 @@ def take(self, indices, axis=0, convert=None, is_copy=True, **kwargs):
33803380 axis : {0 or 'index', 1 or 'columns', None}, default 0
33813381 The axis on which to select elements. ``0`` means that we are
33823382 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-
33923383 is_copy : bool, default True
33933384 Whether to return a copy of the original object or not.
33943385 **kwargs
@@ -3449,11 +3440,6 @@ class max_speed
34493440 1 monkey mammal NaN
34503441 3 lion mammal 80.5
34513442 """
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-
34573443 nv .validate_take (tuple (), kwargs )
34583444 return self ._take (indices , axis = axis , is_copy = is_copy )
34593445
0 commit comments