group_records

bandicoot.helper.group.group_records(records, groupby='week')

Group records by year, month, week, or day.

Parameters

records : iterator

An iterator over records

groupby : Default is 'week':

  • 'week': group all records by year and week
  • None: records are not grouped. This is useful if you don't want to divide records in chunks
  • "day", "month", and "year" also accepted