-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Returns of generate_locations() function #251
Comments
Hi Haojun, Thanks for raising up this issue. Trackintel now does not provide the possibility to join the information of different data models as internal functions. For joining staypoint with location level information, I would recommend using:
This line resets the index of the input staypoint, merge the two dataframes on We are now planning to include helper functions in trackintel to join staypoint + location and tripleg + trip. Thanks again for raising our awareness :). |
@hong2223 Should we create an assignable issue for these helper functions where we collect what is needed and close this issue? |
For the returns
stp_cls
andloc_cls
ofgenerate_locations()
function, I would like the possibility to have the coordinates of clustered locations (loc_cls
) assigned to each stay point (stp_cls
), so that I could further extract mobility features on the basis ofstp_cls
data. It could be achieved bystp_cls = stp_cls.join(loc_cls, on="location_id", lsuffix='user_id')
and could be set by default False to avoid data redundancy.The text was updated successfully, but these errors were encountered: