pandas.DataFrame.xyz.s_from_xy
- DataFrame.xyz.s_from_xy(**kwargs)[source]
Calculate cumulative distances from GPS coordinates.
- Parameters
**lat (scalar) – column label in the record DataFrame containing latitude coordinates along the route in degrees N (-90, 90). Must be numeric dtype. If a label is not provided, the parameter name itself is used.
**lon (scalar) – column label in the record DataFrame containing longitude coordinates along the route in degrees E (-180, 180). 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