Open Felix-neko opened 1 month ago
[ ] ENH,SCH: Function that maps from (dataframelib, column datatype) to (pandera, column datatype)?
Pandas DataFrame column datatypes otoh:
pandas.DataFrame(,dtype="pint[lbf ft]")
@Felix-neko I don't think this is possible atm, just to check, would this be to programatically ensure different dataframes follow the same schema, or would this be to get a dataframe, extract the schema, and save it to a file?
Hi folks! And thank you for your project.
I want to use
pandera
to validate input dataframes of data transformation functions I have to write -- and I have a question.Is it possible to generate a
DataFrameModel
from existingpandas.DataFrame
?Something like
infer_schema(...)
, butinfer_model(...)
?Is it possible?