Statistics
The following two examples use the layers.compute_stats method to compute statistics such as min, max, mean, and var. In general, the same network pre-processing steps can be followed as shown for these network preparation steps or for the network centrality steps. A data set is their necessary for identifying the locations of different land uses and it is the impossible to compete accessibilities over the network using the layers.compute_stats method.
This method requires:
- A
geopandasGeoDataFrameparameter containing landuse data; - A
stats_column_labelsidentifying the corresponding numeric columns for which to compute statistics;
Statistics from geopandas data
Calculate building statistics from a geopandas GeoDataFrame.
Statistics from OSM data
Calculate building statistics from osmnx data.