Last active
April 24, 2022 14:43
-
-
Save SebastianoF/f7db481c35237ea96d6537c9327d1666 to your computer and use it in GitHub Desktop.
b001_06.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osmnx.config(use_cache=True, log_console=True) | |
def gdf_concat(list_gdf: list): | |
return gpd.GeoDataFrame( pd.concat(list_gdf, ignore_index=True)) | |
query_city = {'city': 'City of London'} | |
query_london = {'city': 'London'} | |
gdf = gdf_concat([osmnx.geocode_to_gdf(query_city), osmnx.geocode_to_gdf(query_london)]) | |
gdf.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment