Test for dtype comparison
- [43038 ] closes #xxxx
- [2] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry

Please finish this in your othet pr 