From 37f6b3e823fc4ae102dc103d974bfb3bae988aa7 Mon Sep 17 00:00:00 2001 From: Parthiv Naresh Date: Wed, 15 Feb 2023 07:35:15 -0500 Subject: [PATCH] test --- woodwork/statistics_utils/_get_box_plot_info_for_column.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/woodwork/statistics_utils/_get_box_plot_info_for_column.py b/woodwork/statistics_utils/_get_box_plot_info_for_column.py index 16cad4c17..32e5b50d6 100644 --- a/woodwork/statistics_utils/_get_box_plot_info_for_column.py +++ b/woodwork/statistics_utils/_get_box_plot_info_for_column.py @@ -59,7 +59,11 @@ def _determine_coefficients(series, mc): method (str): Name of the outlier method to use. mc (float): The medcouple statistic (if the method chosen is medcouple, otherwise None). """ - coeff = np.abs(skew(series)) + try: + coeff = np.abs(skew(series)) + except ValueError: + # skew can't handle Int64 dtype + coeff = np.abs(skew(series.astype("float64"))) coeff = min(coeff, 3.5) if mc >= 0: return -coeff, coeff