pandera.io.pandas_io.from_json¶
- pandera.io.pandas_io.from_json(source)[source]¶
Create
DataFrameSchemafrom json file.- Parameters:
source –
Depending on the type, source is assumed to be:
str or Path to a file containing json schema (if the file exists),
str as a JSON-encoded schema, or
stream that we can read from containing the schema as JSON-encoded string.
- Returns:
dataframe schema.