Skip to content

BUG: Series constructor loses date unit of Timestamps #58300

@WillAyd

Description

@WillAyd

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

>>> pd.Timestamp("2024-01-01 00:00:00").unit 's' >>> pd.Series([pd.Timestamp("2024-01-01 00:00:00")]).dt.unit 'ns'
 ### Issue Description I would expect the Series to maintain the unit of 's' ### Expected Behavior I would expect the Series to maintain the unit of 's' ### Installed Versions '3.0.0.dev0+681.g434fda08cf' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNon-Nanodatetime64/timedelta64 with non-nanosecond resolutionTimestamppd.Timestamp and associated methods

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions