@@ -3794,9 +3794,7 @@ def _clear_item_cache(self) -> None:
3794
3794
# ----------------------------------------------------------------------
3795
3795
# Indexing Methods
3796
3796
3797
- def take (
3798
- self : NDFrameT , indices , axis : Axis = 0 , is_copy : bool_t | None = None , ** kwargs
3799
- ) -> NDFrameT :
3797
+ def take (self : NDFrameT , indices , axis : Axis = 0 , ** kwargs ) -> NDFrameT :
3800
3798
"""
3801
3799
Return the elements in the given *positional* indices along an axis.
3802
3800
@@ -3812,13 +3810,6 @@ def take(
3812
3810
The axis on which to select elements. ``0`` means that we are
3813
3811
selecting rows, ``1`` means that we are selecting columns.
3814
3812
For `Series` this parameter is unused and defaults to 0.
3815
- is_copy : bool
3816
- Before pandas 1.0, ``is_copy=False`` can be specified to ensure
3817
- that the return value is an actual copy. Starting with pandas 1.0,
3818
- ``take`` always returns a copy, and the keyword is therefore
3819
- deprecated.
3820
-
3821
- .. deprecated:: 1.0.0
3822
3813
**kwargs
3823
3814
For compatibility with :meth:`numpy.take`. Has no effect on the
3824
3815
output.
@@ -3877,13 +3868,6 @@ class max_speed
3877
3868
1 monkey mammal NaN
3878
3869
3 lion mammal 80.5
3879
3870
"""
3880
- if is_copy is not None :
3881
- warnings .warn (
3882
- "is_copy is deprecated and will be removed in a future version. "
3883
- "'take' always returns a copy, so there is no need to specify this." ,
3884
- FutureWarning ,
3885
- stacklevel = find_stack_level (),
3886
- )
3887
3871
3888
3872
nv .validate_take ((), kwargs )
3889
3873
0 commit comments