From d1febb456edcbe4482d9efabfb873053572f2e9e Mon Sep 17 00:00:00 2001 From: Jeremy Goodsitt Date: Thu, 27 Jul 2023 16:34:48 -0500 Subject: [PATCH] fix: cat vs float bug --- dataprofiler/profilers/float_column_profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()