Skip to content

Commit

Permalink
set copy=True for cuDF series
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Sep 9, 2024
1 parent 77b96e9 commit b4c7c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def __array__(self, dtype: Any = None, copy: bool | None = None) -> Any:
def to_numpy(self, dtype: Any = None, copy: bool | None = None) -> Any:
# the default is meant to be None, but pandas doesn't allow it?
# https://numpy.org/doc/stable/reference/generated/numpy.ndarray.__array__.html
copy = copy or False
copy = copy or self._implementation is Implementation.CUDF

has_missing = self._native_series.isna().any()
if (
Expand Down

0 comments on commit b4c7c56

Please sign in to comment.