4.16. sum_by_vehicle module
- sum_by_vehicle.calc_sum_of_costs(dict_to_sum, name_of_sum, *args)[source]
- Parameters::
dict_to_sum: Dictionary; contains the parameters to be summed.
name_of_sum: String; used to identify the sum being done.
args: String(s); the attributes to be summed.
- Returns:
The passed dictionary updated to include a new ‘name_of_sum’ parameter that sums the passed args for each dictionary key.