-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Conversation
doc/source/whatsnew/v1.0.0.rst
Outdated
@@ -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`) |
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.
what is the min version of pyarrow that is ok here?
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.
looks like the problem is in fastparquet; it fails in the most recent version 0.3.2
reverted the RangeIndex bits since fastparquet still uses them |
Also, the start/stop/step were only at deprecation warning, we should maybe first elevate that to future warning? |
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 add DatetimeIndex.offset to the whatsnew as well?
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.
lgtm, ex @jorisvandenbossche comment
The offset note made it into #29801, just the actual removal fell through the cracks |
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) |
pls rebase |
rebased + green |
thanks @jbrockmendel |
DatetimeIndex.offset I thought was removed in #29801, but apparently slipped through the cracks.