transbigdata.mobile_stay_duration
- transbigdata.mobile_stay_duration(staydata, col=['stime', 'etime'], start_hour=8, end_hour=20)
Input the stay point data to identify the duration during night and day time.
- 参数:
staydata (DataFrame) – Stay data
col (List) – The column name, in the order of [‘starttime’,’endtime’]
start_hour (Number) – Start hour of day time
end_hour (Number) – End hour of day time
- 返回:
duration_night (Series) – Duration at night time
duration_day (Series) – Duration at day time