Skip to content

Conversation

@jbrockmendel
Copy link
Member

In the near future, the state being tracked in array_to_datetime and array_strptime will include a resolution (xref #55564). This implements a ParseState object to de-duplicate tracking, validation, and updating.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

minor comment but generally lgtm

cdef bint parse_today_now(str val, int64_t* iresult, bint utc)


cdef class ParseState:
Copy link
Member

Choose a reason for hiding this comment

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

I think we should call this DateTimeParseState; helps to disambiguate it in case it ends up intertwined with any other type of parser

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea, updated

@mroeschke mroeschke added this to the 2.2 milestone Oct 23, 2023
@mroeschke mroeschke added Datetime Datetime data dtype Timezones Timezone data dtype labels Oct 23, 2023
@mroeschke mroeschke merged commit 0c7d303 into pandas-dev:main Oct 23, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-parse_state branch October 23, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Datetime Datetime data dtype Timezones Timezone data dtype

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants