Ticket #1313 (new wish)

Opened 16 months ago

Last modified 16 months ago

Expand functionality of groupby widget.

Reported by: echlebek Owned by: echlebek
Milestone: Component: library
Severity: minor Keywords: groupby
Cc: Blocking:
Blocked By:

Description

I'd like to add some functionality to this widget.

  1. The ability to create multiple groupings per attribute.
  2. A per-attribute boolean property which causes the aggregator to only consider unique values.
  3. The ability to group into lists and sets.

The first and second ideas are fairly easy to achieve. The second idea would naturally necessitate an ungrouping widget to deal with attributes that are collection objects. I'm also not sure how well the Orange data model would handle these types of objects.

Change History

comment:1 Changed 16 months ago by ales

I'm also not sure how well the Orange data model would handle these types of objects.

It is possible to store arbitrary python object in a data table using the  Python variable, however I would advise against using it (not least because of the almost non-existent documentation).

Since collections would be useless for other widgets (nothing could use them at least for now), you could create normal 'stand-in' variables, but add a new output (introducing a new type) to the widget with enough information for the ungroup widget to make sense of it's inputs so it can apply the required transformation. But I can't guaranty that such a patch would be accepted (you might have to maintain a add-on yourself)

Note: See TracTickets for help on using tickets.