Replies: 2 comments 3 replies
-
@cosmicBboy Sure! Do you mind if I take a crack at a PR this evening / tomorrow morning? I probably will need some of your help with the PR as I won't get it right the first time! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I looked around on the discussions and documentation and could not find if there was pre-built in functionality to do something like the pa.checks.Check.isin but in the opposite direction. What I mean by that is can I check that all of the values from the allowed_values is present in the column? I think the current check makes sure all of the values in the column are only allowed to be values from the allowed_values parameter.
e.g.: I have a df of different names
df = pd.DataFrame({"a": [fred, joe, john, bob]})
I also have a separate list of names that must be present
list_names_must_be_present = [fred, joe]
I would like a pa.checks that checks to ensure all of the values from the list are present in the column I am checking. Does that functionality exist? If not, is there a way to check this? I've used pytest in the past to check this, but not sure if I can do this with Pandera.
Beta Was this translation helpful? Give feedback.
All reactions