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

Optional columns #52

Open Abhisek1994Roy opened 3 years ago

Abhisek1994Roy commented 3 years ago

Is there a way to have optional columns in the validation schema? Like, let's say we have a column age, where the validation is that the value needs to be >40. Now if the age column isn't present...that's fine. If it is, then all rows in it need to be >40.