polars.Series.is_utf8#

Series.is_utf8() bool[source]#

Check if this Series datatype is a String.

Deprecated since version 0.19.14: Use Series.dtype == pl.String instead.

Examples

>>> s = pl.Series("x", ["a", "b", "c"])
>>> s.is_utf8()  
True