pandera.io.xarray_io.to_yaml¶
- pandera.io.xarray_io.to_yaml(schema, stream=None, *, minimal=True)[source]¶
Write a DataArraySchema or DatasetSchema to yaml.
- Parameters:
schema – schema to write.
stream – file stream to write to. If None, dumps to string.
minimal (
bool) – passed toserialize_schema().
- Returns:
yaml string if stream is None, otherwise None.