count_distinct

StringColumn.count_distinct(alias='new_column')

COUNT DISTINCT aggregation.

Args:

alias (str): Name for the new column.