Labels=False means use integers as category names To use the category labels I would expect to say labels=True but instead you have to say labels=None. It seems illogical to say labels=None when you want labels.