Skip to content

BUG: guess_datetime_format doesn't guess 2018-01-01T00:00:00.000 #49047

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

Merged
merged 2 commits into from
Oct 11, 2022

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Oct 11, 2022

Haven't added a whatsnew note as it's not yet user-facing

@@ -976,7 +976,6 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None:
(('hour',), '%H', 2),
(('minute',), '%M', 2),
(('second',), '%S', 2),
(('microsecond',), '%f', 6),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't seem to make a difference - at least, I don't think it's covered by existing tests

@MarcoGorelli MarcoGorelli added Bug Datetime Datetime data dtype labels Oct 11, 2022
@MarcoGorelli MarcoGorelli marked this pull request as ready for review October 11, 2022 19:46
@mroeschke mroeschke added this to the 1.6 milestone Oct 11, 2022
@mroeschke mroeschke merged commit f2a91a0 into pandas-dev:main Oct 11, 2022
@mroeschke
Copy link
Member

Thanks @MarcoGorelli

@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
…das-dev#49047)

* guess nanoseconds

* add gh reference number

Co-authored-by: MarcoGorelli <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: guess_datetime_format doesn't guess 2018-01-01T00:00:00.000
2 participants