From 426ecf71c262630cbf6b0b9e0fd1e3f2eb8a2981 Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Fri, 3 May 2024 11:20:22 +0100 Subject: [PATCH] Use return value --- python/cudf/cudf/core/column/datetime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cudf/cudf/core/column/datetime.py b/python/cudf/cudf/core/column/datetime.py index 8f5f6c3feb5..3f541c71576 100644 --- a/python/cudf/cudf/core/column/datetime.py +++ b/python/cudf/cudf/core/column/datetime.py @@ -751,7 +751,7 @@ def tz_localize( if tz is None: return self.copy() - check_ambiguous_and_nonexistent(ambiguous, nonexistent) + ambiguous, nonexistent = check_ambiguous_and_nonexistent(ambiguous, nonexistent) dtype = pd.DatetimeTZDtype(self.time_unit, tz) ambiguous_col, nonexistent_col = self._find_ambiguous_and_nonexistent( tz @@ -886,7 +886,7 @@ def tz_localize(self, tz: str | None, ambiguous="NaT", nonexistent="NaT"): if tz is None: return self._local_time - check_ambiguous_and_nonexistent(ambiguous, nonexistent) + ambiguous, nonexistent = check_ambiguous_and_nonexistent(ambiguous, nonexistent) raise ValueError( "Already localized. " "Use `tz_convert` to convert between time zones."