xref https://github.com/pandas-dev/pandas/pull/44722#issuecomment-998766536 cc @jmg-duarte