Summarize

Filter and then aggregate columns in a table

The filter is applied first to the table. If no filters are included, then the full table is selected. Next, the table is aggregated.

Parameters

Example

internet_sales = rasgo.get.dataset(74)

ds1 = internet_sales.query(
  summarize={
      'SALESAMOUNT': ['COUNT', 'SUM'],
      'CUSTOMERKEY': ['COUNT']
  },
  group_by = ['PRODUCTKEY'])

ds1.preview()

Source Code

Last updated