From 73fbc626130f565ef9478fab392aa8fc694d35cc Mon Sep 17 00:00:00 2001 From: Thomas Dos Santos Date: Tue, 30 Jul 2024 15:25:19 +0200 Subject: [PATCH] fix(_dtypes): non pandas boolean numpy type was deprecated when decoding nullable boolean from parquet files created without pandas we were facing an AttributeError on np.float_ that was deprecated and replaced by np.float64 --- fastparquet/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastparquet/api.py b/fastparquet/api.py index f6e55426..c54e5eb5 100644 --- a/fastparquet/api.py +++ b/fastparquet/api.py @@ -993,7 +993,7 @@ def _dtypes(self, categories=None): if self.pandas_nulls: dtype[col] = converted_types.nullable[dt] else: - dtype[col] = np.float_() + dtype[col] = np.float64() elif dt == 'S12': dtype[col] = 'M8[ns]' self._base_dtype = dtype