runpandas.read_nikerun#

runpandas.read_nikerun(file_path, to_df=False, **kwargs)#

This method loads a NikeRun API response in JSON file into a Pandas DataFrame or runpandas Activity. Column names are translated to runpandas terminology (e.g. “HeartRate” > “heart_rate”). Datetimes indexes are replaced by time offsets. All NaN rows are removed.

Parameters
  • file_path (str, The path to a training file.) –

  • to_df (bool, optional) –

    Return a obj:runpandas.Activity if to_df=True,

    otherwise a pandas.DataFrame will be returned. Defaults to False.

  • **kwargs

  • method (Keyword args to be passed to the read) – accordingly to the file format.

Returns

Return a obj – a pandas.DataFrame will be returned.

Return type

runpandas.Activity if to_df=True, otherwise