Backport PR #42135 on branch 1.3.x (BUG: use hash-function which takes nans correctly into account for ExtensionDtype)
Backport PR #42135: BUG: use hash-function which takes nans correctly into account for ExtensionDtype