diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 5ae237eb7dc32..933305d9e3539 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1334,12 +1334,12 @@ def _validate_read_indexer( not_found = list(set(key) - set(ax)) raise KeyError(f"{not_found} not in index") - # we skip the warning on Categorical/Interval + # we skip the warning on Categorical # as this check is actually done (check for # non-missing values), but a bit later in the # code, so we want to avoid warning & then # just raising - if not (ax.is_categorical() or ax.is_interval()): + if not ax.is_categorical(): raise KeyError( "Passing list-likes to .loc or [] with any missing labels " "is no longer supported, see "