Skip to content

Commit

Permalink
fix: function _take_with_is_copy was defined final but overriden (pan…
Browse files Browse the repository at this point in the history
…das-dev#41004)

* fix: function _take_with_is_copy was defined final but overriden

* fix: add return type
  • Loading branch information
ajiteshsingh authored and yeshsurya committed May 6, 2021
1 parent bc376de commit 6882acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6882acf

Please sign in to comment.