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

Validation on one column which is dependent on other column of dataframe #55

Closed nishanttayal closed 3 years ago

nishanttayal commented 3 years ago

I am not sure if this library currently supports this feature but I am looking for a way through which I can build custom validation of one column based on values present in another column. For Example -

Name, Salary, Department Rob, 5500, Aviation Bob, 1000, Facilities Tom, 6000, IT

In this dataset, I wanted to check if a salary is greater than 5000 when the department is "Aviation", salary greater than 1000 if Department is "Facilities" and so on.

melvinpradep commented 3 years ago

I too have a similar problem statement to solve, any inputs are much appreciated.

multimeric commented 3 years ago

Closing in favour of the more general #57 that I just opened.