diff --git a/tsfresh/feature_extraction/feature_calculators.py b/tsfresh/feature_extraction/feature_calculators.py index 3df61b6ec..903102d5c 100644 --- a/tsfresh/feature_extraction/feature_calculators.py +++ b/tsfresh/feature_extraction/feature_calculators.py @@ -986,7 +986,7 @@ def get_moment(y, moment): :return: the moment requested :return type: float """ - return y.dot(np.arange(len(y))**moment) / y.sum() + return y.dot(np.arange(len(y), dtype=float)**moment) / y.sum() def get_centroid(y): """