Skip to content

Commit

Permalink
fix(_dtypes): non pandas boolean numpy type was deprecated
Browse files Browse the repository at this point in the history
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_
  • Loading branch information
ThomasDsantos committed Jul 30, 2024
1 parent 1891a4a commit 1dda8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastparquet/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dda8e6

Please sign in to comment.