Skip to main content
`Ctrl`+`K`

# pandas.MultiIndex.dtypes

MultiIndex.dtypes

  Return the dtypes as a Series for the underlying MultiIndex.

  Each element in the returned Series corresponds to the dtype of one level of the MultiIndex, indexed by the level names.

  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