pandera.api.pyspark.container.DataFrameSchema.to_script

DataFrameSchema.to_script(fp=None)[source]

Create DataFrameSchema from yaml file.

Parameters:

path – str, Path to write script

Return type:

DataFrameSchema

Returns:

dataframe schema.