pandera.schemas.DataFrameSchema.to_yaml¶ DataFrameSchema.to_yaml(stream=None)[source]¶ Write DataFrameSchema to yaml file. Parameters stream (Optional[PathLike]) – file stream to write to. If None, dumps to string. Returns yaml string if stream is None, otherwise returns None.