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

Method _get_with

pandas/core/series.py:993–1003  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

991 return self._get_with(key)
992
993 def _get_with(self, key):
994 # other: fancy integer or otherwise
995 if isinstance(key, ABCDataFrame):
996 raise TypeError(
997 "Indexing a Series with DataFrame is not "
998 "supported, use the appropriate DataFrame column"
999 )
1000 elif isinstance(key, tuple):
1001 return self._get_values_tuple(key)
1002
1003 return self.loc[key]
1004
1005 def _get_values_tuple(self, key: tuple):
1006 # mpl hackaround

Callers 1

__getitem__Method · 0.95

Calls 1

_get_values_tupleMethod · 0.95

Tested by

no test coverage detected