Frame

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

Constructor

Activity(*args, **kwargs)

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

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.