Say I have a pandas dataframe, with column A, and we want all the values in that column to be of type category with either L or R as the value.
How can I raise an exception if we detect that this column has any value other than L or R? That includes if it was None/null/NaN