Basic example#
Pandera Schema#
from pandera import Column, DataFrameSchema, Index
basic_schema = DataFrameSchema(
{
"field1": Column(
int, title="Field 1 Title", description="My field description"
),
},
index=Index(int),
strict=True,
coerce=True,
description="First data model for testing purposes",
)
.. autopandera_schema:: target.basic_schema.basic_schema
NB: If you want to use markdown with myst-parser, use the eval-rst directive.
Pandera Model#
import pandera as pa
class TestModel(pa.DataFrameModel):
"""
First data model for testing purposes
"""
field1: int = pa.Field(
title="Field 1 Title",
description="My field description",
)
.. autopandera_model:: target.basic_model.TestModel
NB: If you want to use markdown with myst-parser, use the eval-rst directive.