-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
pd.PeriodIndex is a lot slower since version 0.15.2 #12889
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
Comments
that's a quite convoluted way of creating a PI, as are convering to python objects multiple times. many other much better ways. |
Jeff, any recommendations for an alternative way of creating a PI? |
@rs2 Jeff showed 3 alternative ways above to create a PI. Or is it the problem you cannot avoid to start with python datetime.datetime objects? @jreback But, this is potentially related to the slowdown in timeseries plotting #11831, as I see for the above timeit a similar difference between python 2 and python 3 (ca 20ms vs ca 300 ms, both with 0.17.1) |
@jreback , @jorisvandenbossche : I need to have a PeriodIndex with irregular dates. Performance of the following snippet has deteriorated significantly after 0.15.2. Can you recommend an alternative way of creating a Series with data at irregular intervals while preserving those irregular dates rather than resampling the series with interpolation?
|
PeriodIndex
is one of the key methods used for time series analysis. Its performance has deteriorated significantly sincepandas
version 0.15.2. The code snippet below is easy to profile.The text was updated successfully, but these errors were encountered: