Skip to content

Commit 399962c

Browse files
authored
CI: py38 builds (#45454)
1 parent bc2a383 commit 399962c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/extension/json/array.py

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ def __ne__(self, other):
145145
def __array__(self, dtype=None):
146146
if dtype is None:
147147
dtype = object
148+
if dtype == object:
149+
# on py38 builds it looks like numpy is inferring to a non-1D array
150+
return construct_1d_object_array_from_listlike(list(self))
148151
return np.asarray(self.data, dtype=dtype)
149152

150153
@property

0 commit comments

Comments
 (0)