import peartree as pt
feed = pt.get_representative_feed("./gtfs.zip")
start = 7*60*60 # 7:00 AM
end = 10*60*60 # 10:00 AM
G = pt.load_feed_as_graph(feed, start, end)
these are the versions for peartree and pandas:
peartree version: 0.6.4
pandas version: 2.2.2
and this is the error I got:
[anaconda3\envs\ox\Lib\site-packages\peartree\graph.py](http://localhost:8888/lab/workspaces/auto-y/tree/~/AppData/Local/anaconda3/envs/ox/Lib/site-packages/peartree/graph.py) in ?(G, name, stops_df, exempt_nodes, connection_threshold)
193 connection_threshold,
194 exempt_id=full_sid)
195
196 # Iterate through series results and add to output
--> 197 for node_id, dist_val in nearest_nodes.iteritems():
198 stop_ids.append(sid)
199 to_nodes.append(node_id)
200 edge_costs.append(dist_val)
I hope this gets patched but the workaround is to go into graph.py and change iteritems() to items(). I don't know if it breaks anything but I got peartree to plot.
I am using the example code:
these are the versions for peartree and pandas:
and this is the error I got: