def validate(self, dataframe, column_name):
    rows_with_unexpected_buckets = dataframe[dataframe[column_name].apply((lambda x: ((x % 5) != 0)))]
    if (not rows_with_unexpected_buckets.empty):
        raise ColumnConstraintViolationException(constraint_name=self.name, constraint_description=self.error_description, column_name=column_name, offending_rows=rows_with_unexpected_buckets)
def validate(self, dataframe, column_name):
    rows_with_unexpected_buckets = dataframe[dataframe[column_name].apply((lambda x: ((x % 5) != 0)))]
    if (not rows_with_unexpected_buckets.empty):
        raise ColumnConstraintViolationException(constraint_name=self.name, constraint_description=self.error_description, column_name=column_name, offending_rows=rows_with_unexpected_buckets)