Skip to content

Instantly share code, notes, and snippets.

@afcotroneo
Created March 29, 2021 17:30
Show Gist options
  • Save afcotroneo/1feb267c10179d82a30735e118ef73d5 to your computer and use it in GitHub Desktop.
Save afcotroneo/1feb267c10179d82a30735e118ef73d5 to your computer and use it in GitHub Desktop.
# Load Edges into GeoDataFrame
nodes, edges = ox.graph_to_gdfs(G)
# Drop Unwanted Columns
edges.drop(['oneway', 'lanes', 'maxspeed'], inplace=True, axis=1)
# Preview Data
edges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment