pandera.io.xarray_io.to_json¶
- pandera.io.xarray_io.to_json(schema, target=None, *, minimal=True, **kwargs)[source]¶
Write a DataArraySchema or DatasetSchema to json.
- Parameters:
schema – schema to write.
target – file path or stream. If None, returns json string.
minimal (
bool) – passed toserialize_schema().kwargs – passed to
json.dump().
- Returns:
json string if target is None, otherwise None.