polars.Series.dtype#

property Series.dtype: type[polars.datatypes.DataType][source]#

Get the data type of this Series.

Examples

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