pandas.MultiIndex.dtypes#
- MultiIndex.dtypes[source]#
Return the dtypes as a Series for the underlying MultiIndex.
See also
Index.dtype
Return the dtype object of the underlying data.
Series.dtypes
Return the data type of the underlying Series.
Examples
>>> idx = pd.MultiIndex.from_product( ... [(0, 1, 2), ("green", "purple")], names=["number", "color"] ... ) >>> idx MultiIndex([(0, 'green'), (0, 'purple'), (1, 'green'), (1, 'purple'), (2, 'green'), (2, 'purple')], names=['number', 'color']) >>> idx.dtypes number int64 color object dtype: object