pandera.io.pandas_io.to_yaml¶
- pandera.io.pandas_io.to_yaml(dataframe_schema, stream=None, dataframe_library=None, *, minimal=True)[source]¶
Write
DataFrameSchemato 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.
dataframe_library – optional
dataframe_librarytag; seeserialize_schema().minimal (
bool) – passed toserialize_schema().
- Returns:
yaml string if stream is None, otherwise returns None.