Skip to content

Commit

Permalink
Remove the unused code in pandas like series (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
MUKESHRAJMAHENDRAN authored Dec 3, 2024
1 parent a5c3e45 commit 2c8a095
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions narwhals/_pandas_like/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,6 @@ def __init__(
self._backend_version = backend_version
self._version = version

# In pandas, copy-on-write becomes the default in version 3.
# So, before that, we need to explicitly avoid unnecessary
# copies by using `copy=False` sometimes.
if self._implementation is Implementation.PANDAS and self._backend_version < (
3,
0,
0,
):
self._use_copy_false = True
else:
self._use_copy_false = False

def __native_namespace__(self: Self) -> ModuleType:
if self._implementation in {
Implementation.PANDAS,
Expand Down

0 comments on commit 2c8a095

Please sign in to comment.