transbigdata.mobile_identify_work
- transbigdata.mobile_identify_work(staydata, col=['uid', 'stime', 'etime', 'LONCOL', 'LATCOL'], minhour=3, start_hour=8, end_hour=20, workdaystart=0, workdayend=4)
Identify work location from mobile phone stay data. The rule is to identify the locations with longest duration in day time on weekdays(Average duration should over minhour).
- 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.
minhour (Number) – Minimun duration in work days (hours).
workdaystart (Number) – Start and end of work days in the week. 0 - Monday, 4 - Friday
workdayend (Number) – Start and end of work days in the week. 0 - Monday, 4 - Friday
start_hour (Number) – Start hour and end hour of day time
end_hour (Number) – Start hour and end hour of day time
- Returns:
work – work location of mobile phone users
- Return type:
DataFrame