Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pandas-dev/pandas
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 99f30b897275bf9eda90813c0c6d6ef73b4367cb
Choose a base ref
..
head repository: pandas-dev/pandas
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1804d7d82d91dd8783b40123455838bdcd7b9715
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 pandas/core/dtypes/concat.py
4 changes: 2 additions & 2 deletions pandas/core/dtypes/concat.py
Original file line number Diff line number Diff line change
@@ -192,8 +192,8 @@ def _concat_categorical(to_concat, axis=0):
"""

def _concat_asobject(to_concat):
to_concat = [np.asarray(x.astype(object)) for x in to_concat]

to_concat = [x.get_values() if is_categorical_dtype(x.dtype)
else np.asarray(x.astype(object)) for x in to_concat]
res = _concat_compat(to_concat)
if axis == 1:
return res.reshape(1, len(res))