diff --git a/src/biosets/data_handling/arrow/arrow.py b/src/biosets/data_handling/arrow/arrow.py index 10e90f1..768dfa2 100644 --- a/src/biosets/data_handling/arrow/arrow.py +++ b/src/biosets/data_handling/arrow/arrow.py @@ -88,8 +88,8 @@ def _arrow_array_to_numpy(self, pa_array: pa.Array) -> np.ndarray: or (isinstance(x, float) and np.isnan(x)) for x in array ): - return np.array(array, copy=False, dtype=object) - return np.array(array, copy=False) + return np.asarray(array, dtype=object) + return np.asarray(array) def to_pandas(self, X: Union[pa.Array, pa.ChunkedArray, pa.Table], **kwargs): if isinstance(X, (pa.ChunkedArray, pa.Array)):