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

Method array

pandas/core/indexes/multi.py:755–767  ·  view source on GitHub ↗

Raises a ValueError for `MultiIndex` because there's no single array backing a MultiIndex. Raises ------ ValueError

(self)

Source from the content-addressed store, hash-verified

753
754 @property
755 def array(self):
756 """
757 Raises a ValueError for `MultiIndex` because there's no single
758 array backing a MultiIndex.
759
760 Raises
761 ------
762 ValueError
763 """
764 raise ValueError(
765 "MultiIndex has no single backing array. Use "
766 "'MultiIndex.to_numpy()' to get a NumPy array of tuples."
767 )
768
769 @cache_readonly
770 def dtypes(self) -> Series:

Callers 3

__array__Method · 0.45
_format_multiMethod · 0.45
get_locsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected