diff --git a/pandas/core/series.py b/pandas/core/series.py index df7646a8cbcb5..9f0b9040d1ae2 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -863,7 +863,7 @@ def take(self, indices, axis=0, is_copy=None, **kwargs) -> Series: result = self._constructor(new_values, index=new_index, fastpath=True) return result.__finalize__(self, method="take") - def _take_with_is_copy(self, indices, axis=0): + def _take_with_is_copy(self, indices, axis=0) -> Series: """ Internal version of the `take` method that sets the `_is_copy` attribute to keep track of the parent dataframe (using in indexing