MCPcopy Create free account
hub / github.com/dask/dask / _is_index_level_reference

Function _is_index_level_reference

dask/dataframe/multi.py:254–260  ·  view source on GitHub ↗
(x, key)

Source from the content-addressed store, hash-verified

252 """
253
254 def _is_index_level_reference(x, key):
255 return (
256 x.index.name is not None
257 and (np.isscalar(key) or isinstance(key, tuple))
258 and key == x.index.name
259 and key not in getattr(x, "columns", ())
260 )
261
262 if isinstance(columns_or_index, list):
263 return any(_is_index_level_reference(df, n) for n in columns_or_index)

Callers 1

_contains_index_nameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected