Replies: 2 comments 2 replies
-
hi @sbs-mpadilla can you try passing in a string directly? under the hood pandera will compile it into a |
Beta Was this translation helpful? Give feedback.
2 replies
-
Your check works fine on my machine. Can you post a sample of your dataframe and your schema? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following check:
pdera.Check.str_matches(r"(^\d{10})\.0$|(^\d{9}\s*-\s*\d$)|(^(?:\d{3}[.-]){3}\d$)")
However, when I run the validation I get this Schema error case:
str_matches(re.compile('(^\\d{10})\\.0$|(^\\d{9}\\s*-\\s*\\d$)|(^(?:\\d{3}[.-]){3}\\d$)')) [AttributeError("'re.Pattern' object has no attribute 'startswith'")]
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions