actio_python_utils.spark_functions.serialize_string_field¶
- actio_python_utils.spark_functions.serialize_string_field(self, column, new_column)[source]¶
Serializes a
pyspark.sql.types.StringType
field for output.- Parameters:
self (
DataFrame
) – The dataframe to usecolumn (
str
) – The name of the column to serializenew_column (
str
) – The name to give the new serialized column
- Return type:
DataFrame
- Returns:
A new dataframe with the serialized column