Skip to content

LazyColumn.str.isalpha

isalpha

isalpha() -> LazyColumn

Checks if all characters in each string are alphabetic (letters only).

Returns:

Name Type Description
LazyColumn LazyColumn

A new LazyColumn of boolean values indicating whether each string contains only alphabetic characters.

Examples:

print(df.head())
#    col1 my_string_column
# 0     1         "Hello"
# 1     2         "Test123"
# 2     3         "ABC"
# 3     4         ""
# 4     5         None

df["my_string_column"].str.isalpha()
# [True, False, True, False, None]