actio_python_utils.spark_functions.count_columns_with_string¶
- actio_python_utils.spark_functions.count_columns_with_string(self, string='|')[source]¶
Return a PySpark dataframe with the number of times a given string occurs in each string column in a dataframe
- Parameters:
self (
DataFrame
) – The dataframe to summarizestring (
str
, default:'|'
) – The string to search for
- Return type:
DataFrame
- Returns:
The new dataframe with counts per column