Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion woodwork/statistics_utils/_get_box_plot_info_for_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down