(values)
| 1171 | ) |
| 1172 | |
| 1173 | def coerce(values): |
| 1174 | # we allow coercion to if errors allows |
| 1175 | values = to_numeric(values, errors=errors) |
| 1176 | |
| 1177 | # prevent prevision issues in case of float32 # GH#60506 |
| 1178 | if is_float_dtype(values.dtype): |
| 1179 | values = values.astype("float64") |
| 1180 | |
| 1181 | # prevent overflow in case of int8 or int16 |
| 1182 | if is_integer_dtype(values.dtype): |
| 1183 | values = values.astype("int64") |
| 1184 | return values |
| 1185 | |
| 1186 | values = ( |
| 1187 | coerce(arg[unit_rev["year"]]) * 10000 |
no test coverage detected