Skip to content

REF: use standard pattern in normalize_i8_timestamps #34507

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
Jun 1, 2020

Conversation

jbrockmendel
Copy link
Member

From here the plan is to move to passing int64_t* which will allow us to share code between the scalar/vector versions of this function

@jreback jreback added this to the 1.1 milestone Jun 1, 2020
@jreback jreback added Clean Datetime Datetime data dtype labels Jun 1, 2020
@jreback jreback merged commit 4fcc6a6 into pandas-dev:master Jun 1, 2020
@jbrockmendel jbrockmendel deleted the ref-ni8-2 branch June 1, 2020 03:23
@jorisvandenbossche
Copy link
Member

This one seems to have caused a significant performance regression: https://pandas.pydata.org/speed/pandas/#timeseries.DatetimeAccessor.time_dt_accessor_normalize?p-t='UTC'&commits=4fcc6a66

Is that expected / accepted?

@@ -1036,14 +1035,7 @@ def normalize(self):
'2014-08-01 00:00:00+05:30'],
dtype='datetime64[ns, Asia/Calcutta]', freq=None)
"""
if self.tz is None or timezones.is_utc(self.tz):
Copy link
Contributor

Choose a reason for hiding this comment

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

this fastpath looks like it was removed in favor of the loop in normalize_i8_timestamps. cc @jbrockmendel

@jbrockmendel
Copy link
Member Author

yah, i was surprised to see that the cython version is non-trivially slower than the numpy version. i have one long-shot guess at a way to speed up the cython version, will try that out today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants