Backport PR #42049 on branch 1.3.x (BUG: hash_pandas_object ignores optional arguments when the input is a DataFrame.)
Backport PR #42049: BUG: hash_pandas_object ignores optional arguments when the input is a DataFrame.