Aggregator weights by object ID #364
-
I have a bunch of GPS data I have collected from multiple cyclists. I would like to show a map of where they have ridden, but would also like to preserve their individual privacy. I'm a new MovingPandas user but I have managed to successfully get their data into a TrajectoryCollection with "traj_id_col" label for each trajectory and "obj_id_col" label for each rider. I then followed the tutorial on using the TrajectoryCollectionAggregator to plot the flows. The "weight" column in that flows data allows me to control for the number of trajectories but gives no information on the number of objects. Is there any way I could achieve that, or some kind of work around, so that I only show the flow lines that more than one rider has traversed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I don't suppose you could create some dummy data and provide a MCVE (https://blog.dask.org/2018/02/28/minimal-bug-reports) to show what you've done so we can have a go at tweaking it to what you want |
Beta Was this translation helpful? Give feedback.
-
Sure, I'll put something together and get back to you. Thanks for taking a look. |
Beta Was this translation helpful? Give feedback.
I think what you would like is a obj_id_col_count arg (bool) to
get_flows_gdf
.Here is a quick and dirty post-processed version. It's likely this information is in the code and just not being returned.