Concatenating unordered ``CategoricalIndex`` overrides indices - GH24845
- [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Hello @GivyBoy! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



* In the file [`pandas/tests/reshape/concat/test_categorical.py`](https://github.com/pandas-dev/pandas/blob/e2eb81395776baf3b3b6212edc2921b8fc6d6ebc/pandas/tests/reshape/concat/test_categorical.py):

> [Line 262:48](https://github.com/pandas-dev/pandas/blob/e2eb81395776baf3b3b6212edc2921b8fc6d6ebc/pandas/tests/reshape/concat/test_categorical.py#L262): [W292](https://duckduckgo.com/?q=pep8%20W292) no newline at end of file



##### Comment last updated at 2022-07-24 22:37:20 UTC I wanted to get the conversation started, regarding fixing this issue. I want to know if the solution is acceptable and, if not, what you are looking for. Thanks! Thanks for the PR @GivyBoy. If you are considering a bug fix, you would better to create an issue then link your pr to it. Also you should pass all the test (or at least all the groupby test) before commit. If disscussion or issue clarification needed, it may be done in the issue you created.