DataFrame Accessor

pandas_x provides a separate namespace with DataFrame that only applies to DataFrames structured as records of data along a route, like that contained in activity files (FIT, GPX, TCX).

pandas.DataFrame.pos can be used to access the values of the dataframe as activity records and return several properties. These can be accessed like DataFrame.pos.<property>.

Position methods

pandas.DataFrame.pos.ds_from_xy(**kwargs)

Calculate point-to-point displacements from GPS coordinates.

pandas.DataFrame.pos.ds_from_s(**kwargs)

Calculate point-to-point displacements from cumulative distances.

pandas.DataFrame.pos.s_from_ds(**kwargs)

Calculate cumulative distances from point-to-point displacements.

pandas.DataFrame.pos.s_from_v(**kwargs)

Calculate point-to-point displacements from speed.

pandas.DataFrame.pos.v_from_ds(**kwargs)

Calculate speed from point-to-point displacements.

pandas.DataFrame.pos.v_from_s(**kwargs)

Calculate speed from cumulative distances.

pandas.DataFrame.pos.reduced_point_index(…)

Eliminates gps points that are too close together.