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

Is there a way to compare date field? #49

Open Abhisek1994Roy opened 3 years ago

Abhisek1994Roy commented 3 years ago

Is there a way to compare date field? Like say, for a column that is of time DateTime, I want to check that all dates are greater than 15/12/2020.

multimeric commented 3 years ago

Not by default, no. But it should be a fairly trivial CustomSeriesValidation (see docs). Plus, I would love a PR for a built-in InDateRange or similar. Possibly even make the InRangeValidation work on multiple different types.