Skip to content

Commit

Permalink
Aggregate Columns: Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Mar 2, 2021
1 parent 4d13dab commit c676227
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/visual-programming/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Data
widgets/data/sqltable
widgets/data/save
widgets/data/datainfo
widegts/data/aggregatecolumns
widgets/data/datatable
widgets/data/selectcolumns
widgets/data/selectrows
Expand Down
37 changes: 37 additions & 0 deletions doc/visual-programming/source/widgets/data/aggregatecolumns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Aggregate Columns
=================

Compute a sum, max, min ... of selected columns.

**Inputs**

- Data: input dataset

**Outputs**

- Data: extended dataset

**Aggregate Columns** outputs an aggregation of selected columns, for example a sum, min, max, etc.

![](images/AggregateColumns.png)

1. Selected attributes.
2. Operator for aggregation:
- sum
- product
- min
- max
- mean
- variance
- median
3. Set the name of the computed attribute.
4. If *Apply automatically* is ticked, changes will be communicated automatically. Alternatively, click *Apply*.

Example
-------

We will use iris data from the [File](../data/file.md) widget for this example and connect it to **Aggregate Columns**.

Say we wish to compute a sum of *sepal_length* and *sepal_width* attributes. We select the two attributes from the list.

![](images/AggregateColumns-Example.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions doc/widgets.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,22 @@
"inspect"
]
},
{
"text": "Aggregate Columns",
"doc": "visual-programming/source/widgets/data/aggregatecolumns.md",
"icon": "../Orange/widgets/data/icons/AggregateColumns.svg",
"background": "#FFD39F",
"keywords": [
"aggregate",
"sum",
"product",
"max",
"min",
"mean",
"median",
"variance"
]
},
{
"text": "Data Sampler",
"doc": "visual-programming/source/widgets/data/datasampler.md",
Expand Down

0 comments on commit c676227

Please sign in to comment.