Commit bf91b58b authored by Eric Duminil's avatar Eric Duminil
Browse files

Not every OSM region has width information

parent 7e835af6
......@@ -35,7 +35,8 @@ def create_table(ways):
df = df.rename(columns={'width': 'width [m]',
'maxspeed': 'maxspeed [km/h]'})
for col in NUMERICAL_COLUMNS:
df[col] = pd.to_numeric(df[col])
if col in df.columns:
df[col] = pd.to_numeric(df[col])
df = df.sort_values('length [m]', ascending=False)
return df
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment