Closed Ghost---Shadow closed 4 years ago
If you're using a CustomSeriesValidation
(which you are evidently doing here), the documentation says that you must return a boolean Series, from your validation function, not a single boolean.
If you want to return a single boolean for each cell, you should use CustomElementValidation
, or if you want to validate the whole Series as passing or failing, you can attempt to mimic IsDtypeValidation
.
Incidentally, this behaviour will be much nicer in the next major version. You will be able to return a single boolean to indicate that the whole Series has passed/failed the validation, or a boolean Series which will apply for each position in the Series.
My CustomValidator returned
True
andFalse
. But,line 85: validation.py
says
Which does a bitwise not.
I think the documentation needs to be more clear about the expectation or we should change to line to.