DVector.concat_to_comp_zoning#

classmethod DVector.concat_to_comp_zoning(dvecs, zone_system)[source]#

Concatenate Dvectors to a resulting DVector with composite zoning.

This is the equvalent of concatenating DataFrames from a dictionary, where the dictionary keys become a new level of the columns.

Parameters:
  • dvecs (dict[int, Dvector]) – dict of ints to DVectors. Int is the zone for each DVector in the concat.

  • zone_system (str | ZoningSystem) – The zoning system to add in the concat. If str this is generated on the fly with zones simply being the keys of dvecs.