Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Series constructor loses date unit of Timestamps #58300

Closed
3 tasks done
WillAyd opened this issue Apr 17, 2024 · 2 comments · Fixed by #55901
Closed
3 tasks done

BUG: Series constructor loses date unit of Timestamps #58300

WillAyd opened this issue Apr 17, 2024 · 2 comments · Fixed by #55901
Labels
Bug Non-Nano datetime64/timedelta64 with non-nanosecond resolution Timestamp pd.Timestamp and associated methods

Comments

@WillAyd
Copy link
Member

WillAyd commented Apr 17, 2024

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'
@WillAyd WillAyd added Bug Timestamp pd.Timestamp and associated methods labels Apr 17, 2024
@WillAyd
Copy link
Member Author

WillAyd commented Apr 17, 2024

@jbrockmendel in case you have any insights into this

@jbrockmendel
Copy link
Member

Addressed by #55901

@jbrockmendel jbrockmendel added the Non-Nano datetime64/timedelta64 with non-nanosecond resolution label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Non-Nano datetime64/timedelta64 with non-nanosecond resolution Timestamp pd.Timestamp and associated methods
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants