validate_zones#
- caf.distribute.utils.validate_zones(trip_ends, costs, costs_format, tld_lookup)#
Validate inputs to a multi area gravity model.
This checks that the zones are identical for each. It is assumed the zones form the index of each of these, and the columns of costs if in wide format. There is no return from this function if the zones do match, only an error raised if they don’t.
- Parameters:
trip_ends (DataFrame)
costs (DataFrame)
costs_format (Literal['long', 'wide'])
tld_lookup (DataFrame)