actio_python_utils.spark_functions.serialize_bool_field

actio_python_utils.spark_functions.serialize_bool_field(self, column, new_column)[source]

Serializes a pyspark.sql.types.BooleanType field for output.

Parameters:
  • self (DataFrame) – The dataframe to use

  • column (str) – The name of the column to serialize

  • new_column (str) – The name to give the new serialized column

Return type:

DataFrame

Returns:

A new dataframe with the serialized column