pandera.io.pandas_io.from_json

pandera.io.pandas_io.from_json(source)[source]

Create DataFrameSchema from json file.

Parameters:

source

Depending on the type, source is assumed to be:

  1. str or Path to a file containing json schema (if the file exists),

  2. str as a JSON-encoded schema, or

  3. stream that we can read from containing the schema as JSON-encoded string.

Returns:

dataframe schema.