You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
07_local_autocorrelation.ipynb
In the last cell, matplotlib throws the following message.
Ignoring fixed y limits to fulfill fixed data aspect with adjustable data limits.
This is caused by this line.
# Keep proportion of axesaxs[i].axis("equal")
It appears that matplotlib was ignoring this line all along, but now tells you about it. Probably could delete it.
12_feature_engineering.ipynb
osmnx has changed its syntax for querying features from OSM. In addition, OSM has changed the attributes it returns with each feature. This code no longer works.
GeoPandas has changed the op parameter to predicate. The following no longer works.
# Spatial join, appending attributes from right table to left onejoined=geopandas.sjoin(
# Right table - POIspois_albers,
# Left table - Airbnb with the geometry reset from the original# points to the 500-meter buffer and selecting only `id` and# `buffer_500m` columnairbnbs_albers.set_geometry("buffer_500m")[["id", "buffer_500m"]],
# Operation (spatial predicate) to use for the spatial join (`within`)op="within",
)
This will fix it.
# Spatial join, appending attributes from right table to left onejoined=geopandas.sjoin(
# Right table - POIspois_albers,
# Left table - Airbnb with the geometry reset from the original# points to the 500-meter buffer and selecting only `id` and# `buffer_500m` columnairbnbs_albers.set_geometry("buffer_500m")[["id", "buffer_500m"]],
# Operation (spatial predicate) to use for the spatial join (`within`)predicate="within",
)
A change in Rasterio results in dem.crs returning the WKT projection info, which is kinda confusing since it name checks five different EPSG numbers.
I like to use a fresh environment each time I teach from this book. I used the following command on Dec 31, 2024 on an Intel Mac.
List of packages installed along with their versions.
The following are updates to the book to match these package versions.
produces this message from numba.
I suspect this is peculiar to my ancient Intel Mac, but I thought I'd flag it.
03_spatial_data.ipynb
and12_feature_engineering.ipynb
The osmnx
config()
function has been replaced by asettings
module. This lineshould change to this.
07_local_autocorrelation.ipynb
In the last cell, matplotlib throws the following message.
This is caused by this line.
It appears that matplotlib was ignoring this line all along, but now tells you about it. Probably could delete it.
12_feature_engineering.ipynb
osmnx has changed its syntax for querying features from OSM. In addition, OSM has changed the attributes it returns with each feature. This code no longer works.
The following works.
GeoPandas has changed the
op
parameter topredicate
. The following no longer works.This will fix it.
A change in Rasterio results in
dem.crs
returning the WKT projection info, which is kinda confusing since it name checks five different EPSG numbers.Changing this to
print(dem.crs)
returns the following, which is clearer.The text was updated successfully, but these errors were encountered: