We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc2a383 commit 399962cCopy full SHA for 399962c
pandas/tests/extension/json/array.py
@@ -145,6 +145,9 @@ def __ne__(self, other):
145
def __array__(self, dtype=None):
146
if dtype is None:
147
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))
151
return np.asarray(self.data, dtype=dtype)
152
153
@property
0 commit comments