Given is a DataFrame with pairs of start and end locations in chronological order.
Example:
- a-b
- g-d
- b-g
- .....
The goal is to create a "networkx" map to visualize all the routes with more than 2 nodes. Like this: A --> B --> G and so on...
I thought i could probably do this by sub setting the df to where end location == start location.
How would one subset the dataset and loop through it until there is no more end location == start location?