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

Support for JSON schema #586

Closed
padlam001 opened this issue Aug 12, 2021 · 1 comment
Closed

Support for JSON schema #586

padlam001 opened this issue Aug 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@padlam001
Copy link

Is your feature request related to a problem? Please describe.
I need to call a 3rd party library by passing a large pandas dataframe. I also need to validate the dataframe before passing that across. The 3rd party library provides JSON schema for the dataframe. My current validation gets slow as the dataframe gets bigger. Switching to pandera is an option but I need to convert JSON schema to pandera specific yaml schema. This is a bit clumsy, error prone and not future proof.

Describe the solution you'd like
Pandera to support JSON schema. Instead of all users convert existing JSON into specific format, it would be very practical for pandera library to do this. So, something like this:

schema = pandera.from_json(json_schema_filename)

Describe alternatives you've considered
Alternative is to convert from JSON to pandera specific format manually, which is clumsy, prone to error and not future proof.

Additional context
None

@padlam001 padlam001 added the enhancement New feature or request label Aug 12, 2021
@cosmicBboy
Copy link
Collaborator

thanks for the feature request @padlam001, this is a duplicate of #421, closing this one.

contributions welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants