multimeric / PandasSchema

A validation library for Pandas data frames using user-friendly schemas
https://multimeric.github.io/PandasSchema/
GNU General Public License v3.0
189 stars 35 forks source link

Question: Does DateFormatValidation support multiple date format strings? #62

Closed pranshuag9 closed 3 years ago

pranshuag9 commented 3 years ago

There is a usecase where i want to support multiple date formats in a column. How can this be done using PandasSchema. Only workaround i can think of right now is to write whole logic inside CustomElementValidation but it will be better if this functionality is provided by PandasSchema. If it is already present, how to use it?

multimeric commented 3 years ago

You should be able to do this using boolean logic: https://multimeric.github.io/PandasSchema/#boolean-logic-on-validators

pranshuag9 commented 3 years ago

thanks for quick reply. Boolean logic is great. Fixed the issue.