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 d793899 commit 7e4f873Copy full SHA for 7e4f873
pandas/tests/extension/json/array.py
@@ -97,7 +97,11 @@ def _cast_pointwise_result(self, values):
97
try:
98
return type(self)._from_sequence(values, dtype=self.dtype)
99
except (ValueError, TypeError):
100
- return values
+ # TODO replace with public function
101
+ from pandas._libs import lib
102
+
103
+ values = np.asarray(values, dtype=object)
104
+ return lib.maybe_convert_objects(values, convert_non_numeric=True)
105
106
def __getitem__(self, item):
107
if isinstance(item, tuple):
0 commit comments