is_alphabetic

calista.core.functions.is_alphabetic(col_name: str) ConditionExpression

Create a condition to check if a column value is alphabetic.

Args:

col_name (str): The name of the column.

Returns:

ConditionExpression: The condition to check if a column value is alphabetic.

Example

>>> calista_table = CalistaTable(engine = "spark").create({"PLANETE": ["mars", None, "jupiter", "terre"]})
>>> my_rule = is_alphabetic(col_name="PLANETE")
>>> print(calista_table.analyze(rule_name="My Rule Name", condition=my_rule))
rule_name : My Rule Name
total_row_count : 4
valid_row_count : 3
valid_row_count_pct : 75.0
timestamp : 2024-01-01 00:00:00.000000