Follow up to https://github.com/pandas-dev/pandas/pull/27242. https://github.com/pandas-dev/pandas/pull/27242#issuecomment-542602004