StringMethods.isipv4() SeriesOrIndex#

Check whether all characters in each string form an IPv4 address.

If a string has zero characters, False is returned for that check.

Series or Index of bool

Series or Index of boolean values with the same length as the original Series/Index.


>>> import cudf
>>> s = cudf.Series(["", "", "", "123.456"])
>>> s.str.isipv4()
0    False
1     True
2     True
3    False
dtype: bool