polars.Series.is_numeric#

Series.is_numeric() bool[source]#

Check if this Series datatype is numeric.

Deprecated since version 0.19.13: Use Series.dtype.is_numeric() instead.

Examples

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