polars.Series.is_numeric#

Series.is_numeric() bool[source]#

Check if this Series datatype is numeric.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.is_numeric()
True