From eb9dd8d8fb439316c508b8bf1ca0ad817cf9bb5f Mon Sep 17 00:00:00 2001 From: Max Kanter Date: Wed, 19 Jun 2019 09:21:47 -0400 Subject: [PATCH 1/2] change return type to numeric --- featuretools/primitives/standard/transform_primitive.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/featuretools/primitives/standard/transform_primitive.py b/featuretools/primitives/standard/transform_primitive.py index 71ee33682f..464549db64 100644 --- a/featuretools/primitives/standard/transform_primitive.py +++ b/featuretools/primitives/standard/transform_primitive.py @@ -17,7 +17,6 @@ Numeric, Ordinal, Text, - Timedelta, Variable ) @@ -369,7 +368,7 @@ class TimeSince(TransformPrimitive): """ name = 'time_since' input_types = [[DatetimeTimeIndex], [Datetime]] - return_type = Timedelta + return_type = Numeric uses_calc_time = True def __init__(self, unit="seconds"): From 0a1420a07b6da5ac43adfe07c88fd9fe597b8efb Mon Sep 17 00:00:00 2001 From: Max Kanter Date: Wed, 19 Jun 2019 09:24:33 -0400 Subject: [PATCH 2/2] Update changelog.rst --- docs/source/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 8733a52a71..e7f94f571a 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -17,6 +17,7 @@ Changelog * Improved error message for index/time_index being the same column in normalize_entity and entity_from_dataframe (:pr:`583`) * Removed all mentions of allow_where (:pr:`587`, :pr:`588`) * Removed unused variable in normalize entity (:pr:`589`) + * Change time since return type to numeric (:pr:`606`) * Changes * Refactor get_pandas_data_slice to take single entity (:pr:`547`) * Updates TimeSincePrevious and Diff Primitives (:pr:`561`)