transbigdata.mobile_identify_home

transbigdata.mobile_identify_home(staydata, col=['uid', 'stime', 'etime', 'LONCOL', 'LATCOL'], start_hour=8, end_hour=20)

Identify home location from mobile phone stay data. The rule is to identify the locations with longest duration in night time.

Parameters:
  • staydata (DataFrame) – Stay data

  • col (List) – The column name, in the order of [‘uid’,’stime’, ‘etime’, ‘locationtag1’, ‘locationtag2’, …]. There can be multiple ‘locationtag’ columns to specify the location.

  • start_hour (Number) – Start hour and end hour of day time

  • end_hour (Number) – Start hour and end hour of day time

Returns:

home – Home location of mobile phone users

Return type:

DataFrame