DOC: fix categorical comparison example (GH8946)
Merge pull request #9035 from jorisvandenbossche/doc-cat

DOC: fix categorical comparison example (GH8946)