diff --git a/scripts/sp2xr_generate_config.py b/scripts/sp2xr_generate_config.py index 3c37fcb..8782a13 100644 --- a/scripts/sp2xr_generate_config.py +++ b/scripts/sp2xr_generate_config.py @@ -19,7 +19,7 @@ from typing import Any def infer_general_dtype(dtype: Any) -> str: """Infer general data type from pandas dtype.""" if pd.api.types.is_integer_dtype(dtype): - return "int" + return "float" # Use float to handle potential NA values elif pd.api.types.is_float_dtype(dtype): return "float" elif pd.api.types.is_datetime64_any_dtype(dtype):