filtered_employment#

caf.van.lgv_inputs.filtered_employment(paths, aggregation)[source]#

Read and aggregated the TfN employment land-use DVector.

The DVector should contain the ‘sic_1_digit’ segmentation, any other segmentation will be aggregated.

Parameters:
  • path (EmploymentPaths) – Contains DVector containing the employment data and the zone correspondence between the DVector zoning and the model zoning system.

  • aggregation (dict[str, tuple[str]]) – Dictionary containing names of any industry columns to aggregate together, the keys should be the name of the new column to create and the tuple should contain the ‘sic_1_digit’ IDs to aggregate together (ints corresponding to the letter segmentation).

  • paths (EmploymentPaths)

Returns:

TfN Land-Use data with ‘sic_1_digit’ IDs aggregated and converted to the model zone system, contains ‘Zone’ column with zone numbers and then one column per item in aggregation (key is the column name).

Return type:

pd.DataFrame