Skip to content

REF: split out to_datetime_with_unit, _to_datetime_with_format #40185

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 4 commits into from
Mar 3, 2021

Conversation

jbrockmendel
Copy link
Member

The idea is that to_datetime_with_format will eventually be moved into objects_to_datetime64ns, and most of _convert_listlike_datetimes will just be a call to sequence_to_dt64ns

@@ -517,6 +487,93 @@ def _array_strptime_with_fallback(
return _box_as_indexlike(result, utc=utc, name=name)


def _to_datetime_with_format(
Copy link
Contributor

Choose a reason for hiding this comment

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

where is this called? (now)

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 is basically cut/paste/de-dented from _convert_listlike_datetimes

Copy link
Member Author

Choose a reason for hiding this comment

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

woops, did the copy/paste but forgot to actually use the new function. updated

@jreback jreback added Refactor Internal refactoring of code Datetime Datetime data dtype labels Mar 2, 2021
@jreback jreback added this to the 1.3 milestone Mar 3, 2021
@jreback
Copy link
Contributor

jreback commented Mar 3, 2021

doc failure looks like network; ping on green.

@jreback
Copy link
Contributor

jreback commented Mar 3, 2021

hmm can you merge master

@jreback jreback merged commit c500987 into pandas-dev:master Mar 3, 2021
@jbrockmendel jbrockmendel deleted the ref-to_datetime-3 branch March 3, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants