pandera.io.to_yaml#

pandera.io.to_yaml(dataframe_schema, stream=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.