pandas.Index.dtype — pandas 2.2.3 documentation (original) (raw)

Index.dtype[source]#

Return the dtype object of the underlying data.

Examples

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