rounding_correction#

caf.space.zone_correspondence.rounding_correction(zone_corr, from_zone_name, to_zone_name)[source]#

Fix error causing negative factors.

For most translations this function will do almost nothing, but is run anyway.

Parameters:
  • (pd.DataFrame) (zone_corr)

  • (str) (to_zone_name)

  • (str)

  • zone_corr (DataFrame)

  • from_zone_name (str)

  • to_zone_name (str)

Returns:

pd.DataFrame

Return type:

The input zone_corr dataframe adjusted to remove errors.