hotstepper.Steps.read_dict

classmethod Steps.read_dict(data, use_datetime=False, convert_delta=True)

Read a dictionary with values that represent either the cummulative value of the data steps or the direct step values seperately, indexed by the dictionary key values.

Parameters
  • data (dictionary_like) –

    A dictionary representing the data to convert to steps. Assumed format is:

    • key -> step start

    • value -> step weight

  • use_datetime (bool, Optional) – Assume start and end fields are of datetime format (Numpy.datetime64,datetime or Pandas.Timestamp).

  • convert_delta (bool, Optional) – Assume weight values are individual step weights (default), or convert values by performing a delta between adjacent values. The data is assumed to be sorted by the provided start values.

Returns

Return type

Steps