mobilkit.dask_schemas module

The typical types of the dataframe being processed and the fixed column names.

mobilkit.dask_schemas.eventLineDT = [('UTC', <class 'int'>), ('uid', <class 'str'>), ('OS', <class 'int'>), ('lat', <class 'float'>), ('lng', <class 'float'>), ('acc', <class 'int'>), ('timezone', <class 'int'>), ('datetime', <class 'datetime.datetime'>)]

The default type for raw files with datetime added. It is composed by:

  • UTC : unix time stamp (int)

  • UID : unique user identifier (string)

  • OS : The os of the user (int)

  • lat : latitude (float)

  • lon : longitude (float)

  • acc : accuracy (float)

  • tz : time zone offset (float)

  • date : datetime (datetime)

mobilkit.dask_schemas.eventLineDTzone = [('UTC', <class 'int'>), ('uid', <class 'str'>), ('OS', <class 'int'>), ('lat', <class 'float'>), ('lng', <class 'float'>), ('acc', <class 'int'>), ('timezone', <class 'int'>), ('datetime', <class 'datetime.datetime'>), ('tile_ID', <class 'int'>)]

The default type for raw files with datetime and zone index (int) added. It is composed by:

  • UTC : unix time stamp (int)

  • UID : unique user identifier (string)

  • OS : The os of the user (int)

  • lat : latitude (float)

  • lon : longitude (float)

  • acc : accuracy (float)

  • tz : time zone offset (float)

  • date : datetime (datetime)

  • ZONE_IDX : the index of the containing area (int, -1 if outside of shapefile)

mobilkit.dask_schemas.eventLineRAW = [('UTC', <class 'int'>), ('uid', <class 'str'>), ('OS', <class 'int'>), ('lat', <class 'float'>), ('lng', <class 'float'>), ('acc', <class 'int'>), ('timezone', <class 'int'>)]

The default type for raw files. It is composed by:

  • UTC : unix time stamp (int)

  • uid : unique user identifier (string)

  • OS : The os of the user (int)

  • lat : latitude (float)

  • lng : longitude (float)

  • acc : accuracy (float)

  • timezone : time zone offset (float)

mobilkit.dask_schemas.eventLineZone = [('UTC', <class 'int'>), ('uid', <class 'str'>), ('OS', <class 'float'>), ('lat', <class 'float'>), ('lng', <class 'float'>), ('acc', <class 'float'>), ('timezone', <class 'float'>), ('tile_ID', <class 'int'>)]

The default type for raw files with zone index (int) added. It is composed by:

  • UTC : unix time stamp (int)

  • UID : unique user identifier (string)

  • OS : The os of the user (int)

  • lat : latitude (float)

  • lon : longitude (float)

  • acc : accuracy (float)

  • tz : time zone offset (float)

  • ZONE_IDX : the index of the containing area (int, -1 if outside of shapefile)