54569447ac365a1967d026cfb5c2bd228cb513ec,featuretools/entityset/timedelta.py,Timedelta,get_unit_type,#Timedelta#,104

Before Change


        if self.unit == "o":
            return None
        elif self.unit in self._absolute_units:
            return pd.Timedelta(self.value, self.unit)
        else:
            unit = self.readable_unit.lower()
            return relativedelta(**{unit: self.value})

After Change


        return list(self.times.keys())

    def get_unit_type(self):
        all_units = self.get_units()
        if self._Observations in all_units:
            return None
        elif self.is_absolute() and self.has_multiple_units() is False:
            return pd.Timedelta(self.times[all_units[0]], all_units[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Featuretools/featuretools
Commit Name: 54569447ac365a1967d026cfb5c2bd228cb513ec
Time: 2019-09-25
Author: christopherbunn@users.noreply.github.com
File Name: featuretools/entityset/timedelta.py
Class Name: Timedelta
Method Name: get_unit_type


Project Name: Featuretools/featuretools
Commit Name: 54569447ac365a1967d026cfb5c2bd228cb513ec
Time: 2019-09-25
Author: christopherbunn@users.noreply.github.com
File Name: featuretools/entityset/timedelta.py
Class Name: Timedelta
Method Name: get_name


Project Name: Featuretools/featuretools
Commit Name: 54569447ac365a1967d026cfb5c2bd228cb513ec
Time: 2019-09-25
Author: christopherbunn@users.noreply.github.com
File Name: featuretools/entityset/timedelta.py
Class Name: Timedelta
Method Name: is_absolute