return_totals#

caf.space.weighted_funcs.return_totals(frame, id_col, data_col)[source]#

Group df by id_col and sums, keeping data_col.

Parameters:
  • frame (A dataframe.)

  • id_col (Column to group by.)

  • data_col (Column to keep)

Return type:

Grouped and summed df