Writing checks for data input and output using Schema Model approach #1103
Unanswered
shoaibkhanz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking to validate a
grp_by
function which takes input and output schema. Trying to find a solution using a SchemaModel. Resources I have looked into is the following: resource#1: https://pandera.readthedocs.io/en/stable/schema_models.html#basic-usage and resource#2: https://pandera.readthedocs.io/en/stable/decorators.html?highlight=check_io#decorate-functions-and-coroutines. I am not sure If I have to write a 3rd class as mentioned in resource2.Also is there a way to validate
df_num_rows_check
function when callinggrp_by
I have intentionally misspelled the a column
tranr_output
which should betrans_output
as per the schema, the checks fail to catch that, when I try something like the following.Any help would be appreciated..
Beta Was this translation helpful? Give feedback.
All reactions