DVector.split_by_agg_zoning#

DVector.split_by_agg_zoning(agg_zoning, trans=None)[source]#

Split a DVector into a different new DVector for each aggregate zone.

Returns a dictionary with keys of agg_zone id and values of DVectors. The returned dvectors are still in original zoning, but each will be a subset of the full zone system.

Parameters:
  • agg_zoning (ZoningSystem) – The zoning system to split self by. Must be a strict aggregation of self.zoning_system

  • trans (pd.DataFrame | None = None) – The translation to use to split the DVector. If left as None this will be found using the DVector method.

Returns:

A dict of self split into DVectors for each zone in agg_zoning

Return type:

dict[int, DVector]