prevent the pandas.Categorical support breaking support for older versions of pandas