Skip to content

Commit eb05b13

Browse files
authored
PERF: avoid unnecessary copy (#59630)
1 parent 306385b commit eb05b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/string_.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def __arrow_array__(self, type=None):
660660
return pa.array(values, type=type, from_pandas=True)
661661

662662
def _values_for_factorize(self) -> tuple[np.ndarray, libmissing.NAType | float]: # type: ignore[override]
663-
arr = self._ndarray.copy()
663+
arr = self._ndarray
664664

665665
return arr, self.dtype.na_value
666666

0 commit comments

Comments
 (0)