within_range reports the truth values of the range test for each row in the column it tests. For a longer dataframe (e.g. 891 titanic rows) where you have 1 violating row you get a long list of False that hides the True row. Possibly the report could just summarise the rows that are in violation of the constraint?
within_range
reports the truth values of the range test for each row in the column it tests. For a longer dataframe (e.g. 891 titanic rows) where you have 1 violating row you get a long list ofFalse
that hides theTrue
row. Possibly the report could just summarise the rows that are in violation of the constraint?Current:
Suggested:
and possibly the
.sum()
of the result column could be included to report the number of violations, in case that number is very large?