COMPAT: Compat issue is DataFrame.dtypes when options.mode.use_inf_as_null is True (GH8722)