Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the unused code in pandas like series #1489

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading