-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
CLN: Move period.pyx to tslibs/period.pyx #18555
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
Changes from 3 commits
7748a45
b093f40
0959e67
61e299d
a14b37e
bb286a8
ece5218
331d3e6
dd5021f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,26 +17,26 @@ from pandas.compat import PY2 | |
|
|
||
| cimport cython | ||
|
|
||
| from tslibs.np_datetime cimport (pandas_datetimestruct, | ||
| dtstruct_to_dt64, dt64_to_dtstruct, | ||
| is_leapyear) | ||
| from pandas._libs.tslibs.np_datetime cimport (pandas_datetimestruct, | ||
| dtstruct_to_dt64, | ||
| dt64_to_dtstruct, is_leapyear) | ||
|
|
||
|
|
||
| cimport util | ||
| from util cimport is_period_object, is_string_object, INT32_MIN | ||
|
|
||
| from missing cimport is_null_datetimelike | ||
| from pandas._libs.missing cimport is_null_datetimelike | ||
| from pandas._libs.tslib import Timestamp | ||
|
||
| from tslibs.timezones cimport ( | ||
| from pandas._libs.tslibs.timezones cimport ( | ||
| is_utc, is_tzlocal, get_utcoffset, get_dst_info) | ||
| from tslibs.timedeltas cimport delta_to_nanoseconds | ||
|
|
||
| from tslibs.parsing import (parse_time_string, NAT_SENTINEL, | ||
| _get_rule_month, _MONTH_NUMBERS) | ||
| from tslibs.frequencies cimport get_freq_code | ||
| from tslibs.resolution import resolution, Resolution | ||
| from tslibs.nattype import nat_strings, NaT, iNaT | ||
| from tslibs.nattype cimport _nat_scalar_rules, NPY_NAT | ||
| from pandas._libs.tslibs.timedeltas cimport delta_to_nanoseconds | ||
|
|
||
| from pandas._libs.tslibs.parsing import (parse_time_string, NAT_SENTINEL, | ||
| _get_rule_month, _MONTH_NUMBERS) | ||
| from pandas._libs.tslibs.frequencies cimport get_freq_code | ||
| from pandas._libs.tslibs.resolution import resolution, Resolution | ||
| from pandas._libs.tslibs.nattype import nat_strings, NaT, iNaT | ||
| from pandas._libs.tslibs.nattype cimport _nat_scalar_rules, NPY_NAT | ||
|
|
||
| from pandas.tseries import offsets | ||
| from pandas.tseries import frequencies | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,7 +104,11 @@ def load_reduce(self): | |
| ('pandas.tseries.index', 'DatetimeIndex'): | ||
| ('pandas.core.indexes.datetimes', 'DatetimeIndex'), | ||
| ('pandas.tseries.period', 'PeriodIndex'): | ||
| ('pandas.core.indexes.period', 'PeriodIndex') | ||
| ('pandas.core.indexes.period', 'PeriodIndex'), | ||
|
|
||
| # 18543 moving period | ||
|
||
| ('pandas._libs.period', 'Period'): | ||
| ('pandas._libs.tslibs.period', 'Period') | ||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the beauty here is that you can do
from np_datetime cimport ....and so on , the putsperiodin the same dir as all of the tslibs