We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7294dd commit 1804d7dCopy full SHA for 1804d7d
pandas/core/dtypes/concat.py
@@ -193,7 +193,7 @@ def _concat_categorical(to_concat, axis=0):
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]
+ else 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