pandera.io.to_yaml

pandera.io.to_yaml(dataframe_schema, stream=None)[source]

DataFrameSchema 写入yaml文件。

Parameters:
  • dataframe_schema – 写入文件或转储为字符串的模式。

  • stream – 要写入的文件流。如果为 None,将转储为字符串。

Returns:

如果流为 None,则返回 yaml 字符串,否则返回 None。