You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Index.dtype¶

property Index.dtype: Union[dtype, ExtensionDtype][source]¶

Get the dtype object of the underlying data.

Returns:

The dtype of the underlying data.

Return type:

DtypeObj

Examples

>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.dtype
dtype('int64')
Copy