Skip to content

pd.concat reset the tz-aware index to UTC #18422

Closed
@alessioarena

Description

@alessioarena

Hi,

Having two DataFrames with index being tz-aware Timestamp objects

print(concat_df[0].index.tz, concat_df[1].index.tz)
fxt = pd.concat(concat_df, axis=1)
print(fxt.index.tz)

This leads to the following output

Australia/Melbourne Australia/Melbourne
UTC

I believe this may be in some way related to #7562

pandas version = 0.21.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReshapingConcat, Merge/Join, Stack/Unstack, ExplodeTimezonesTimezone data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions