Skip to content

IllustrativeSteps

SaraPettinari edited this page May 29, 2025 · 1 revision

Illustrative steps


πŸ“Œ Query 1

Query Step:

step1 = AggrStep(aggr_type="ENTITIES", ent_type= "teamId", group_by=["country"], 
        where=None, attr_aggrs=[AttrAggr(name='city', function=AggregationFunction.MULTISET)])

Output:

Query 1 Output


πŸ“Œ Query 2

Query Step:

step2 = AggrStep(aggr_type="ENTITIES", ent_type= "playerId", group_by=["role"], 
        where=None, attr_aggrs=[])

Output:

Query 2 Output


πŸ“Œ Query 3

Query Step:

AggrStep(aggr_type="EVENTS", ent_type= None, where=None, 
        group_by=[log.event_activity, "teamId","playerId"], 
        attr_aggrs=[AttrAggr(name=log.event_timestamp, function=AggregationFunction.MINMAX),
                    AttrAggr(name="matchId", function=AggregationFunction.MULTISET)])

Output:

Query 3 Output

Note

The output displays the EKG after the finalization function has been applied.

Clone this wiki locally