Aggregate

Groups rows by the group_by items applying aggregations functions for the resulting group and selected columns

Parameters

Example

ds = rasgo.get.dataset(id)

ds2 = ds.aggregate(group_by=['FIPS'], aggregations={
          'COL_1': ['SUM', 'AVG'],
          'COL_2': ['SUM', 'AVG']
      })
ds2.preview()

Source Code

Last updated