We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 020dcce commit b2ebd5aCopy full SHA for b2ebd5a
pandas/core/indexing.py
@@ -1302,12 +1302,12 @@ def _validate_read_indexer(
1302
not_found = list(set(key) - set(ax))
1303
raise KeyError(f"{not_found} not in index")
1304
1305
- # we skip the warning on Categorical/Interval
+ # we skip the warning on Categorical
1306
# as this check is actually done (check for
1307
# non-missing values), but a bit later in the
1308
# code, so we want to avoid warning & then
1309
# just raising
1310
- if not (ax.is_categorical() or ax.is_interval()):
+ if not ax.is_categorical():
1311
raise KeyError(
1312
"Passing list-likes to .loc or [] with any missing labels "
1313
"is no longer supported, see "
0 commit comments