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

Method _view

pandas/core/indexes/multi.py:1307–1317  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1305 return type(self).from_tuples(values, sortorder=None, names=names)
1306
1307 def _view(self) -> MultiIndex:
1308 result = type(self)(
1309 levels=self.levels,
1310 codes=self.codes,
1311 sortorder=self.sortorder,
1312 names=self.names,
1313 verify_integrity=False,
1314 )
1315 result._cache = self._cache.copy()
1316 result._reset_cache("levels") # GH32669
1317 return result
1318
1319 # --------------------------------------------------------------------
1320

Callers 4

set_levelsMethod · 0.95
set_codesMethod · 0.95
astypeMethod · 0.95
_set_levelsMethod · 0.45

Calls 2

_reset_cacheMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected