DOC: fix categorical comparison example (GH8946)

See discussion https://github.com/pydata/pandas/pull/8946/files#r21376839