Skip to content

Grouping by multiple columns and creating a computed column #46

@kishaningithub

Description

@kishaningithub

Would like to do the following logic (expressed as sql) using this library

select column1, column2, count(*) as count
from table
group by column1, column2

What i tried

dataFrame.
  GroupBy(groupby.Columns("column1", "column2")).
  Aggregate(qframe.Aggregation{
	  Fn: count,
	  Column: "count",
  })

Result

Aggregate: unknown column: "count"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions