Skip to content
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

Merged
merged 9 commits into from
Dec 14, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

@@ -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`)
Copy link
Member

Choose a reason for hiding this comment

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

This should not be the recommended alternative, I think? (nothing in pandas.core should be public)

I think @jreback's suggestion to use pandas.core.indexes was for internal replacement

Copy link
Member Author

Choose a reason for hiding this comment

The 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?

Copy link
Member Author

Choose a reason for hiding this comment

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

the docbuild doesnt like ":module:" here, what is the appropriate label?

Copy link
Member

Choose a reason for hiding this comment

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

Nothing, just use double backticks for code. The :obj: things are only to link to something (like an API page), but for a module we have nothing to link to.

Copy link
Member

Choose a reason for hiding this comment

The 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?

You can mention that all public classes (eg the several index classes) are available from the top-level namespace.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks

warnings.warn(
"pandas.core.index is deprecated and will be removed in a future version. "
"Use pandas.core.indexes.api instead.",
FutureWarning,
Copy link
Member

Choose a reason for hiding this comment

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

Let's start with a DeprecationWarning?

Copy link
Contributor

Choose a reason for hiding this comment

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

this has been around forever
let’s just be loud about it (and it had been deprecation via documentation. forever)

Copy link
Member

Choose a reason for hiding this comment

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

OK, opened an issue about it at fastparquet: dask/fastparquet#470

@jreback jreback added the Deprecate Functionality to remove in pandas label Dec 11, 2019
@jreback jreback added this to the 1.0 milestone Dec 11, 2019
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm. Can you fix up merge conflict?


warnings.warn(
"pandas.core.index is deprecated and will be removed in a future version. "
"Use pandas.core.indexes.api instead.",
Copy link
Member

Choose a reason for hiding this comment

The 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)

@@ -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`)
Copy link
Contributor

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)

@jorisvandenbossche jorisvandenbossche merged commit 2892b95 into pandas-dev:master Dec 14, 2019
@jbrockmendel jbrockmendel deleted the depr-ibase branch December 14, 2019 15:35
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
@ShaharNaveh ShaharNaveh mentioned this pull request Jan 16, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: remove pandas.core.index
4 participants