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

Take Pandera for a Spin #859

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

alexrichey
Copy link
Contributor

@alexrichey alexrichey commented May 21, 2024

TLDR

It looks like Pandera is just a better version of the thing that I'd slapped together. It would take another few two or three hours of cleanup to swap it in completely.

Examples

MIH fails standardized values checks:
image

Facilities fails to have all required columns:
image

How it Works

In this implementation, we read in our metadata file, and translate all the columns for a given dataset into a Pandera Check, using our custom validators (e.g. for wkb types). Then we feed it a dataframe to validate. Simple!

Also, in this implementation, we read in all source data as a str type into the dataframe, then use Checks to validate when needed. Pandera Data Types seem like potentially the ideal approach for this.

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

Successfully merging this pull request may close these issues.

1 participant