featuretools.Timedelta

class featuretools.Timedelta(value, unit=None)

Represents differences in time.

Timedeltas can be defined in multiple units. Supported units:

  • “ms” : milliseconds

  • “s” : seconds

  • “h” : hours

  • “m” : minutes

  • “d” : days

  • “o”/”observations” : number of individual events

  • “mo” : months

  • “Y” : years

Timedeltas can also be defined in terms of observations. In this case, the Timedelta represents the period spanned by value.

For observation timedeltas: >>> three_observations_log = Timedelta(3, “observations”) >>> three_observations_log.get_name() ‘3 Observations’

__init__(value, unit=None)
Parameters
  • value (float, str) – Value of timedelta, or string providing both unit and value.

  • unit (str) – Unit of time delta.

Methods

__init__(value[, unit])

param value

Value of timedelta, or string providing

from_dictionary(dictionary)

get_arguments()

get_name()

get_unit_type()

is_absolute()

make_singular(s)

Attributes

readable_unit