-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: reorg pandas.tseries #16040
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
CLN: reorg pandas.tseries #16040
Conversation
this finishes the api cleanup and moves everything but:
from all of the indexes code is now actually in |
Codecov Report
@@ Coverage Diff @@
## master #16040 +/- ##
==========================================
+ Coverage 90.76% 90.79% +0.02%
==========================================
Files 155 156 +1
Lines 50484 50489 +5
==========================================
+ Hits 45824 45839 +15
+ Misses 4660 4650 -10
Continue to review full report at Codecov.
|
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.
We also need to think of something regarding the API docs. Currently that uses pandas.tseries.resample
(eg http://pandas.pydata.org/pandas-docs/stable/generated/pandas.tseries.resample.Resampler.aggregate.html)
That will have to change, meaning all doc links won't work anymore (not that big of a problem I think), but maybe we should think about a more long term option, and also expose this somewhere less nested that will not change? (but not sure where, as I would not add it top-level)
doc/source/conf.py
Outdated
@@ -231,7 +231,7 @@ | |||
moved_api_pages = [ | |||
'pandas.core.common.isnull', 'pandas.core.common.notnull', 'pandas.core.reshape.get_dummies', | |||
'pandas.tools.merge.concat', 'pandas.tools.merge.merge', 'pandas.tools.pivot.pivot_table', | |||
'pandas.tseries.tools.to_datetime', 'pandas.io.clipboard.read_clipboard', 'pandas.io.excel.ExcelFile.parse', |
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.
this shouldn't be changed
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.
fixed
this just changes to |
Yes, but that means that all our online pages change url |
You created here the |
yeah was debating this. ok will move it.
and? lots of thinks moved. |
yes, but up to now (I mean the reorg the last days), no 'public' things. And |
can we do a re-direct? |
yes, that is certainly possible. My concern is only that the urls currently depend a bit on the 'implementation details' in Although chance is high that the |
could u do some kind ornate shim for the actual links? maybe in conf.py make a namespace like pandas.doclinks or something then just assign the classes there ? |
* CLN: move pandas/tseries/resample.py -> pandas/core/resample.py closes pandas-dev#13634 * CLN: move pandas.tseries.period -> pandas.core.indexes.period * CLN: move pandas.tseries.tdi -> pandas.core.indexes.timedeltas * CLN: move pandas.tseries.base -> pandas.core.indexes.datetimelike * CLN: pandas.tseries.common -> pandas.core.indexes.accessors * CLN: move pandas.tseries.index -> pandas.core.indexes.datetimes * CLN: move pandas.tseries.timedeltas, pandas.tseries.tools -> pandas.core.tools * move to_numeric to pandas.core.tools.numeric
I am not sure something like that would work. As sphinx has to actually import it to get the docstring (I think, not sure how it works under the hood) |
xref #13634