Skip to content

Commit 6882acf

Browse files
ajiteshsinghyeshsurya
authored andcommitted
fix: function _take_with_is_copy was defined final but overriden (pandas-dev#41004)
* fix: function _take_with_is_copy was defined final but overriden * fix: add return type
1 parent bc376de commit 6882acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def take(self, indices, axis=0, is_copy=None, **kwargs) -> Series:
863863
result = self._constructor(new_values, index=new_index, fastpath=True)
864864
return result.__finalize__(self, method="take")
865865

866-
def _take_with_is_copy(self, indices, axis=0):
866+
def _take_with_is_copy(self, indices, axis=0) -> Series:
867867
"""
868868
Internal version of the `take` method that sets the `_is_copy`
869869
attribute to keep track of the parent dataframe (using in indexing

0 commit comments

Comments
 (0)