Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to get a DataFrameModel from existing pandas.DataFrame? #1578

Open
Felix-neko opened this issue Apr 15, 2024 · 2 comments
Open
Labels
question Further information is requested

Comments

@Felix-neko
Copy link

Felix-neko commented Apr 15, 2024

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 existing pandas.DataFrame?

Something like infer_schema(...), but infer_model(...)?

Is it possible?

@Felix-neko Felix-neko added the question Further information is requested label Apr 15, 2024
@Felix-neko Felix-neko changed the title Is there a way to generate a DataFrameSchema or DataFrameModel from existing pandas.DataFrame? Is there a way to get a DataFrameModel from existing pandas.DataFrame? Apr 15, 2024
@westurner
Copy link

@kykyi
Copy link
Contributor

kykyi commented Apr 29, 2024

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants