polars.Series.dtype

property Series.dtype: Type[polars.datatypes.DataType]

Get the data type of this Series.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.dtype
<class 'polars.datatypes.Int64'>