From 6cb789a79a3d443dd33d658111f727a428b70fcc Mon Sep 17 00:00:00 2001 From: Taylor Turner Date: Mon, 17 Jul 2023 10:07:08 -0400 Subject: [PATCH] Hot Fix: `.astype("bool")` (#960) * force as boolean * version bump --- dataprofiler/profilers/float_column_profile.py | 2 +- dataprofiler/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dataprofiler/profilers/float_column_profile.py b/dataprofiler/profilers/float_column_profile.py index bd3a1f3e3..cb509ec41 100644 --- a/dataprofiler/profilers/float_column_profile.py +++ b/dataprofiler/profilers/float_column_profile.py @@ -338,7 +338,7 @@ def _is_each_row_float(cls, df_series: pd.Series) -> list[bool] | pd.Series[bool """ if len(df_series) == 0: return list() - return df_series.map(NumericStatsMixin.is_float) + return df_series.map(NumericStatsMixin.is_float).astype("bool") @BaseColumnProfiler._timeit(name="precision") def _update_precision( diff --git a/dataprofiler/version.py b/dataprofiler/version.py index d0f193ca5..d573335ad 100644 --- a/dataprofiler/version.py +++ b/dataprofiler/version.py @@ -2,7 +2,7 @@ MAJOR = 0 MINOR = 10 -MICRO = 0 +MICRO = 1 POST = None # otherwise None VERSION = "%d.%d.%d" % (MAJOR, MINOR, MICRO)