Skip to content

Commit

Permalink
use iteritems, not rows
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanb committed Jan 2, 2018
1 parent f3ad11a commit b32ba09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peartree/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def generate_cross_feed_edges(G,
exempt_id=sid)

# Iterate through series results and add to output
for node_id, dist_val in nearest_nodes.iterrows():
for node_id, dist_val in nearest_nodes.iteritems():
stop_ids.append(sid)
to_nodes.append(node_id)
edge_costs.append(dist_val)
Expand Down

0 comments on commit b32ba09

Please sign in to comment.