Skip to content
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

Address FutureWarning in TrajectoryCollection and TrajectoryStopDetector #290

Closed
anitagraser opened this issue Jan 28, 2023 · 1 comment
Closed
Labels

Comments

@anitagraser
Copy link
Collaborator

In tutorials/1-getting-started.ipynb:

traj_collection = mpd.TrajectoryCollection(gdf, 'trajectory_id', t='t')
print(traj_collection)

trajectory_collection.py:155: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning. for traj_id, values in df.groupby([traj_id_col]):

@anitagraser
Copy link
Collaborator Author

Another FutureWarning:

C:\Users\anita\Documents\GitHub\anitagraser\movingpandas\tutorials\..\movingpandas\trajectory_stop_detector.py:67: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead. for index, data in traj.df[traj.get_geom_column_name()].iteritems():

@anitagraser anitagraser changed the title Address FutureWarning in TrajectoryCollection Address FutureWarning in TrajectoryCollection and TrajectoryStopDetector Jan 28, 2023
anitagraser added a commit that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant