From 820df27c3999f9b7f286e28650c0f232f17b9c17 Mon Sep 17 00:00:00 2001 From: James Ryan Date: Mon, 19 Feb 2024 13:53:20 -0500 Subject: [PATCH] temp --- dataprofiler/profilers/float_column_profile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dataprofiler/profilers/float_column_profile.py b/dataprofiler/profilers/float_column_profile.py index bc426a447..29417584e 100644 --- a/dataprofiler/profilers/float_column_profile.py +++ b/dataprofiler/profilers/float_column_profile.py @@ -305,7 +305,10 @@ 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) + df_series_clean.sample(sample_size) + .astype(object) + .replace(to_replace=r, value="") + .map(len) ).astype(float) # Determine statistics precision