pyspark.pandas.MultiIndex.dtypes¶
-
property
MultiIndex.
dtypes
¶ Return the dtypes as a Series for the underlying MultiIndex.
New in version 3.3.0.
- Returns
- pd.Series
The data type of each level.
Examples
>>> psmidx = ps.MultiIndex.from_arrays( ... [[0, 1, 2, 3, 4, 5, 6, 7, 8], [1, 2, 3, 4, 5, 6, 7, 8, 9]], ... names=("zero", "one"), ... ) >>> psmidx.dtypes zero int64 one int64 dtype: object