pandas.DataFrame.xyz.s_from_ds

DataFrame.xyz.s_from_ds(**kwargs)[source]

Calculate cumulative distances from point-to-point displacements.

The chosen scheme: displacement at [i] represents the distance from [i-1] to [i]. This scheme means converting displacements to cumulative distances does not require any extrapolation.

Parameters

**displacement (scalar) – column label in the record DataFrame containing point-to-point displacements along the route in meters. Must be numeric dtype. If a label is not provided, the parameter name itself is used.

Returns

cumulative distances along the route in meters.

Return type

pandas.Series