From cf4d65128bb657081d4a4e7d2863575326778434 Mon Sep 17 00:00:00 2001 From: JGSweets Date: Fri, 28 Jul 2023 09:00:26 -0500 Subject: [PATCH] hotfix[0.10.2]: cat vs float bug (#973) * fix: cat vs float bug * refactor: update version --- 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 cb509ec41..b816f221c 100644 --- a/dataprofiler/profilers/float_column_profile.py +++ b/dataprofiler/profilers/float_column_profile.py @@ -306,7 +306,7 @@ def _get_float_precision( # length of sampled cells after all punctuation removed len_per_float = ( df_series_clean.sample(sample_size).replace(to_replace=r, value="").map(len) - ) + ).astype(float) # Determine statistics precision precision_sum = len_per_float.sum() diff --git a/dataprofiler/version.py b/dataprofiler/version.py index d573335ad..070b4c9e3 100644 --- a/dataprofiler/version.py +++ b/dataprofiler/version.py @@ -2,7 +2,7 @@ MAJOR = 0 MINOR = 10 -MICRO = 1 +MICRO = 2 POST = None # otherwise None VERSION = "%d.%d.%d" % (MAJOR, MINOR, MICRO)