Skip to content

Commit 1804d7d

Browse files
committed
BUG: Fix concat series loss of timezone
1 parent b7294dd commit 1804d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _concat_categorical(to_concat, axis=0):
193193

194194
def _concat_asobject(to_concat):
195195
to_concat = [x.get_values() if is_categorical_dtype(x.dtype)
196-
else np.asarray(x).ravel() for x in to_concat]
196+
else np.asarray(x.astype(object)) for x in to_concat]
197197
res = _concat_compat(to_concat)
198198
if axis == 1:
199199
return res.reshape(1, len(res))

0 commit comments

Comments
 (0)