Skip to content

REF: collect get_dst_info-using functions in tslibs.vectorized #35168

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 3 commits into from
Jul 8, 2020

Conversation

jbrockmendel
Copy link
Member

I'm open to better names for the new module.

With these all in the same place, we can separate out helper functions and de-duplicate a whole bunch of verbose code.

@@ -21,7 +21,10 @@
import numpy as np
import pytz

from pandas._libs.tslib import ints_to_pydatetime
try:
Copy link
Contributor

Choose a reason for hiding this comment

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

i think generally we should add a comment on what version these are changed so when we know when to remove the try/except

Copy link
Member Author

Choose a reason for hiding this comment

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

isnt the idea to be able to run these benchmarks on older pandas versions basically indefinitely?

Copy link
Contributor

Choose a reason for hiding this comment

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

sure, the reason I think we should add the version number is that so we can eventually remove these try/excepts, otherwise they will stay forever which is pretty cluttering. anyhow for another issue.

@jreback jreback added Refactor Internal refactoring of code Datetime Datetime data dtype labels Jul 8, 2020
@jreback jreback added this to the 1.1 milestone Jul 8, 2020
@jreback jreback merged commit 0cef605 into pandas-dev:master Jul 8, 2020
@jbrockmendel jbrockmendel deleted the ref-tslibs-arrays branch July 8, 2020 22:06
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