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 b7294dd commit 99f30b8Copy full SHA for 99f30b8
pandas/core/dtypes/concat.py
@@ -192,8 +192,8 @@ def _concat_categorical(to_concat, axis=0):
192
"""
193
194
def _concat_asobject(to_concat):
195
- to_concat = [x.get_values() if is_categorical_dtype(x.dtype)
196
- else np.asarray(x).ravel() for x in to_concat]
+ to_concat = [np.asarray(x.astype(object)) for x in to_concat]
+
197
res = _concat_compat(to_concat)
198
if axis == 1:
199
return res.reshape(1, len(res))
0 commit comments