mobilipy.waypointsdataframe

Classes

WaypointsDataFrame(data[, tracked_at, ...])

Class that serves as an entry point for the mobilipy pipeline

class mobilipy.waypointsdataframe.WaypointsDataFrame(data, tracked_at='tracked_at', longitude='longitude', latitude='latitude', user_id='user_id', crs={'init': 'epsg:4326'}, timezone='UTC')

Bases: pandas.core.frame.DataFrame

Class that serves as an entry point for the mobilipy pipeline

Initializes the WaypointsDataFrame

Parameters
  • data (pandas.DataFrame) – DataFrame with raw GPS data

  • tracked_at (str, optional) – Name of the column containing the timestamp. Defaults to constants.TRACKED_AT.

  • longitude (str, optional) – Name of the column containing the longitude. Defaults to constants.LONGITUDE.

  • latitude (str, optional) – Name of the column containing the latitude. Defaults to constants.LATITUDE.

  • user_id (str, optional) – Name of the column containing the user_id. Defaults to ‘user_id’.

  • crs (dict, optional) – Coordinate Reference System. Defaults to {“init”: “epsg:4326”}.

  • timezone (str, optional) – Timezone available in pytz. Defaults to constants.UTC.