Skip to content

Commit 178b2dd

Browse files
committed
use np.asarray instead of to_numpy
1 parent 49e9df7 commit 178b2dd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/core/internals/array_manager.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,7 @@ def column_arrays(self) -> list[ArrayLike]:
795795
Used in the JSON C code to access column arrays.
796796
"""
797797

798-
def convert_array(arr: ArrayLike) -> ArrayLike:
799-
if isinstance(arr, ExtensionArray):
800-
return arr.to_numpy()
801-
else:
802-
return arr
803-
804-
return [convert_array(arr) for arr in self.arrays]
798+
return [np.asarray(arr) for arr in self.arrays]
805799

806800
def iset(
807801
self, loc: int | slice | np.ndarray, value: ArrayLike, inplace: bool = False

0 commit comments

Comments
 (0)