Skip to content

Commit 99f30b8

Browse files
committed
BUG: Fix concat series loss of timezone
1 parent b7294dd commit 99f30b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/dtypes/concat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ def _concat_categorical(to_concat, axis=0):
192192
"""
193193

194194
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]
195+
to_concat = [np.asarray(x.astype(object)) for x in to_concat]
196+
197197
res = _concat_compat(to_concat)
198198
if axis == 1:
199199
return res.reshape(1, len(res))

0 commit comments

Comments
 (0)