MCPcopy
hub / github.com/pandas-dev/pandas / _check_indexing_error

Method _check_indexing_error

pandas/core/indexes/base.py:6090–6094  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

6088 return self._data.argsort(*args, **kwargs)
6089
6090 def _check_indexing_error(self, key) -> None:
6091 if not is_scalar(key):
6092 # if key is not a scalar, directly raise an error (the code below
6093 # would convert to numpy arrays and raise later any way) - GH29926
6094 raise InvalidIndexError(key)
6095
6096 @cache_readonly
6097 def _should_fallback_to_positional(self) -> bool:

Callers 6

get_locMethod · 0.95
get_locMethod · 0.45
get_locMethod · 0.45
get_locMethod · 0.45
get_locMethod · 0.45
get_locMethod · 0.45

Calls 1

InvalidIndexErrorClass · 0.90

Tested by

no test coverage detected