From 947805374c49afb5a264942a0b4856259b37cc7d Mon Sep 17 00:00:00 2001 From: MUKESHRAJ M <87431738+MUKESHRAJMAHENDRAN@users.noreply.github.com> Date: Tue, 3 Dec 2024 04:04:09 +0000 Subject: [PATCH] Remove the unused code in pandas like series --- narwhals/_pandas_like/series.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/narwhals/_pandas_like/series.py b/narwhals/_pandas_like/series.py index 2ef25bf51..9c95c146b 100644 --- a/narwhals/_pandas_like/series.py +++ b/narwhals/_pandas_like/series.py @@ -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,