pandas.DataFrame.xyz.ds_from_s

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

Calculate point-to-point displacements from cumulative distances.

The chosen scheme: displacement at [i] represents the distance from [i-1] to [i].

Parameters

**distance (scalar) – column label in the record DataFrame containing cumulative distances along the route in meters. Must be numeric dtype. If a label is not provided, the parameter name itself is used.

Returns

point-to-point displacements along the route in meters.

Return type

pandas.Series