-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: pandas.core.index #30193
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
DEPR: pandas.core.index #30193
Changes from 3 commits
5591cc2
c8b407c
c90feee
f8bbd08
eff0564
f9d69ca
921ba0a
bb96838
ab0dd27
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 |
---|---|---|
|
@@ -453,7 +453,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor | |
Other API changes | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
- Bumpded the minimum supported version of ``s3fs`` from 0.0.8 to 0.3.0 (:issue:`28616`) | ||
- Bumped the minimum supported version of ``s3fs`` from 0.0.8 to 0.3.0 (:issue:`28616`) | ||
- :class:`pandas.core.groupby.GroupBy.transform` now raises on invalid operation names (:issue:`27489`) | ||
- :meth:`pandas.api.types.infer_dtype` will now return "integer-na" for integer and ``np.nan`` mix (:issue:`27283`) | ||
- :meth:`MultiIndex.from_arrays` will no longer infer names from arrays if ``names=None`` is explicitly provided (:issue:`27292`) | ||
|
@@ -490,7 +490,7 @@ Deprecations | |
- :func:`eval` keyword argument "truediv" is deprecated and will be removed in a future version (:issue:`29812`) | ||
- :meth:`Categorical.take_nd` is deprecated, use :meth:`Categorical.take` instead (:issue:`27745`) | ||
- The parameter ``numeric_only`` of :meth:`Categorical.min` and :meth:`Categorical.max` is deprecated and replaced with ``skipna`` (:issue:`25303`) | ||
- | ||
- :module:`pandas.core.index` has been deprecated and will be removed in a future version, use :module:`pandas.core.indexes.api` instead (:issue:`19711`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should not be the recommended alternative, I think? (nothing in I think @jreback's suggestion to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so remove all of this note or just the part about using indexes.api? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the docbuild doesnt like ":module:" here, what is the appropriate label? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing, just use double backticks for code. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You can mention that all public classes (eg the several index classes) are available from the top-level namespace. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||
|
||
.. _whatsnew_1000.prior_deprecations: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import warnings | ||
|
||
from pandas.core.indexes.api import ( # noqa:F401 | ||
CategoricalIndex, | ||
DatetimeIndex, | ||
|
@@ -19,3 +21,9 @@ | |
get_objs_combined_axis, | ||
) | ||
from pandas.core.indexes.multi import _sparsify # noqa:F401 | ||
|
||
warnings.warn( | ||
"pandas.core.index is deprecated and will be removed in a future version. " | ||
"Use pandas.core.indexes.api instead.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you update this with the same as what you put in the whatsnew? (that is is available from the top-level namespace) |
||
FutureWarning, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's start with a DeprecationWarning? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this has been around forever There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, opened an issue about it at fastparquet: dask/fastparquet#470 |
||
) |
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.
can you update the section that has our min supported version (in the whatsnew) (don't really need this issue line in that case)