TST: Adding map test for dict with np.nan key [Ref 17648]
- [x] closes #17648
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Thanks @sofiane87 