pandera.DataFrameSchema.to_yaml

DataFrameSchema.to_yaml(fp=None)[source]

Write DataFrameSchema to yaml file.

Parameters
  • dataframe_schema – schema to write to file or dump to string.

  • stream – file stream to write to. If None, dumps to string.

Returns

yaml string if stream is None, otherwise returns None.