Skip to content

Commit c5e1276

Browse files
committed
CI: py38 builds
1 parent e08ffd4 commit c5e1276

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/extension/json/array.py

Lines changed: 3 additions & 0 deletions
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(self)
148151
return np.asarray(self.data, dtype=dtype)
149152

150153
@property

0 commit comments

Comments
 (0)