Closed bukosabino closed 2 years ago
Hi @bukosabino, yes! this is an open issue https://github.com/pandera-dev/pandera/issues/393.
Would you be open to making a contribution on this front?
Also, any option to generate the SchemaModel using infer_schema?
Once the DataFrameSchema.to_model
method is implemented it should be pretty straightforward to output a SchemaModel
from infer_schema
.
Another related feature mentioned in #393 would be to support a SchemaModel.to_script
method from an inferred schema. This would be a separate PR.
closing this in to merge with #393
Question about pandera
Hi all, how can I convert a
DataFrameSchema
to aSchemaModel
(Pydantic style)?Also, any option to generate the
SchemaModel
using infer_schema?Thanks