How could I create an expectation that would test that the count of a particular value in a column is less than some percentage?

An expectation like that is not implemented yet. You can implement it as a custom expectation in your project.

1 Like

@eugene.mandel - Would using expect_column_values_to_not_be_in_set work? The set will be just the particular value of interest, and the mostly parameter will be 1 minus the maximum percentage you want?

1 Like

Yes, that would be a way to do it with existing expectations - thank you, @anthony!

1 Like