How to “explicitly specify the categories order by passing in a categories argument” when using tuples as index keys in pandas?
问题 I've been trying to figure out how to make these tuples index keys in pandas but I'm getting an error. How can I use the suggestion from the error with pd.Categorical below to fix this error? I am aware that I can convert to a string but I am curious to see what is meant by the suggestion in the error message? This works perfectly fine when I run it with 0.22.0 . I've opened a GitHub issue for this if anyone wants to see the proper output from 0.22.0 . I want to update my pandas and handle