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: Index.contains, DatetimeIndex.offset #30103

Merged
merged 8 commits into from
Dec 8, 2019

Conversation

jbrockmendel
Copy link
Member

DatetimeIndex.offset I thought was removed in #29801, but apparently slipped through the cracks.

@@ -546,6 +546,8 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more.
- Removed support for nested renaming in :meth:`DataFrame.aggregate`, :meth:`Series.aggregate`, :meth:`DataFrameGroupBy.aggregate`, :meth:`SeriesGroupBy.aggregate`, :meth:`Rolling.aggregate` (:issue:`18529`)
- Passing ``datetime64`` data to :class:`TimedeltaIndex` or ``timedelta64`` data to ``DatetimeIndex`` now raises ``TypeError`` (:issue:`23539`, :issue:`23937`)
- A tuple passed to :meth:`DataFrame.groupby` is now exclusively treated as a single key (:issue:`18314`)
- Removed the previously deprecated :meth:`Index.contains`, use ``key in index`` instead (:issue:`30103`)
- Removed the previously deprecated :attr:`RangeIndex._start`, :attr:`RangeIndex._stop`, :atttr:`RangeIndex._step` (:issue:`26581`)
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the min version of pyarrow that is ok here?

Copy link
Member Author

Choose a reason for hiding this comment

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

looks like the problem is in fastparquet; it fails in the most recent version 0.3.2

@jbrockmendel
Copy link
Member Author

reverted the RangeIndex bits since fastparquet still uses them

@jorisvandenbossche
Copy link
Member

Also, the start/stop/step were only at deprecation warning, we should maybe first elevate that to future warning?

@jorisvandenbossche jorisvandenbossche changed the title DEPR: Index.contains, RangeIndex._start, _stop, _step DEPR: Index.contains, DatetimeIndex.offset Dec 6, 2019
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Can you add DatetimeIndex.offset to the whatsnew as well?

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

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm, ex @jorisvandenbossche comment

@jbrockmendel
Copy link
Member Author

The offset note made it into #29801, just the actual removal fell through the cracks

@jbrockmendel
Copy link
Member Author

Also, the start/stop/step were only at deprecation warning, we should maybe first elevate that to future warning?

Seems reasonable. Should we have a section in #6581 for DeprecationWarnings to upgrade to FutureWarnings? (or a separate tracker, but id prefer to keep it unified)

@jreback
Copy link
Contributor

jreback commented Dec 6, 2019

Also, the start/stop/step were only at deprecation warning, we should maybe first elevate that to future warning?

Seems reasonable. Should we have a section in #6581 for DeprecationWarnings to upgrade to FutureWarnings? (or a separate tracker, but id prefer to keep it unified)

we usually create a specific issue on that milestone, e.g. 1.1 or whatever (and/or can put on a unified tracker)

@jreback
Copy link
Contributor

jreback commented Dec 6, 2019

pls rebase

@jbrockmendel
Copy link
Member Author

rebased + green

@jreback jreback merged commit 9c5b5f2 into pandas-dev:master Dec 8, 2019
@jreback
Copy link
Contributor

jreback commented Dec 8, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the depr-indexes branch December 8, 2019 19:07
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
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.

None yet

3 participants