Frame#

A Activity is a tabular data structure that contains a column which contains a MeasureSeries storing special measures.

A RaceResult object is a pandas.DataFrame that contains additional metadata and methods pertinent to analysis of race results.

Constructor#

Activity(*args, **kwargs)

An Activity object is a pandas.DataFrame that provides useful methods and has specific columns with special functionalities.

RaceResult(*args, **kwargs)

A RaceResult object is a pandas.DataFrame that contains additional metadata and methods pertinent to analysis of race results.

Reading and writing files#

Activity.from_file(file_path, **kwargs)

Alternate constructor to create a Activity from a file.

Activity handling#

Activity.set_specs([cspecs, inplace])

Set the Column Specifications (cspecs) of the Activity.

Activity.to_pandas()

returns

Casted Pandas Dataframe from Activity

Special Metrics#

Activity.ellapsed_time

returns

The duration of activity in pandas.TimedeltaIndex object.

Activity.moving_time

returns

The moving time of activity in pandas.TimedeltaIndex object.

Activity.distance

Returns: The total distance of the activity in meters as a float number.

RaceResult#

RaceResult.summary()

Display the summary statistics from the race.

RaceResult.total_participants

Returns: The number of participants as an integer number.

RaceResult.total_finishers

Returns: The number of finishers as an integer number.

RaceResult.total_nonfinishers

Returns: The number of non-finishers as an integer number.

RaceResult.winner

Returns: The winner record row as a pandas.Series object.

RaceResult.participants

Returns: list: List of all participants that took part in this race; contains bib numbers as string.