You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :meth:`~IntervalIndex.overlaps` method can be used to create a boolean indexer that replicates the
612
+
previous behavior of returning overlapping matches.
613
+
614
+
*New behavior*:
615
+
616
+
.. ipython:: python
617
+
618
+
idxr = s.index.overlaps(pd.Interval(2, 3))
619
+
idxr
620
+
s[idxr]
621
+
s.loc[idxr]
622
+
487
623
.. _whatsnew_0250.api_breaking.deps:
488
624
489
625
Increased minimum versions for dependencies
@@ -686,7 +822,7 @@ Categorical
686
822
687
823
- Bug in :func:`DataFrame.at`and :func:`Series.at` that would raise exception if the index was a :class:`CategoricalIndex` (:issue:`20629`)
688
824
- Fixed bug in comparison of ordered :class:`Categorical` that contained missing values with a scalar which sometimes incorrectly resulted in``True`` (:issue:`26504`)
689
-
-
825
+
- Bug in :meth:`DataFrame.dropna` when the :class:`DataFrame` has a :class:`CategoricalIndex` containing :class:`Interval` objects incorrectly raised a ``TypeError`` (:issue:`25087`)
690
826
691
827
Datetimelike
692
828
^^^^^^^^^^^^
@@ -764,6 +900,7 @@ Interval
764
900
765
901
- Construction of :class:`Interval`is restricted to numeric, :class:`Timestamp`and :class:`Timedelta` endpoints (:issue:`23013`)
- Bug in :meth:`IntervalIndex.get_loc` where a ``KeyError`` would be incorrectly raised for a decreasing :class:`IntervalIndex` (:issue:`25860`)
767
904
- Bug in :class:`Index` constructor where passing mixed closed :class:`Interval` objects would result in a ``ValueError`` instead of an ``object`` dtype ``Index`` (:issue:`27172`)
768
905
769
906
Indexing
@@ -778,6 +915,7 @@ Indexing
778
915
- Fixed bug where assigning a :class:`arrays.PandasArray` to a :class:`pandas.core.frame.DataFrame` would raise error (:issue:`26390`)
779
916
- Allow keyword arguments forcallable local reference used in the :meth:`DataFrame.query` string (:issue:`26426`)
780
917
- Bug which produced ``AttributeError`` on partial matching :class:`Timestamp`in a :class:`MultiIndex` (:issue:`26944`)
918
+
- Bug in :class:`Categorical`and :class:`CategoricalIndex`with :class:`Interval` values when using the ``in`` operator (``__contains``) with objects that are not comparable to the values in the ``Interval`` (:issue:`23705`)
781
919
- Bug in :meth:`DataFrame.loc`and :meth:`DataFrame.iloc` on a :class:`DataFrame`with a single timezone-aware datetime64[ns] column incorrectly returning a scalar instead of a :class:`Series` (:issue:`27110`)
0 commit comments