Quantco / datajudge

Assessing whether data from database complies with reference information.
https://datajudge.readthedocs.io
BSD 3-Clause "New" or "Revised" License
42 stars 3 forks source link

Improve error message if str was passed where list[str] was expected #152

Closed jonashaag closed 1 year ago

jonashaag commented 1 year ago

If you pass a str to add_categorical_bound_constraint(columns=) it will error with KeyError: 'x' where x is the first letter of the column name. Maybe we can have it output a more helpful error message.

ivergara commented 1 year ago

What we can do is that if the argument is not a Collection then it fails with a better error message.