Aggregate Fields avatar

Aggregate Fields

Try for free

No credit card required

View all Actors
Aggregate Fields

Aggregate Fields

pocesar/aggregate-fields
Try for free

No credit card required

Create an overview of a dataset by aggregating the possible variations from the selected fields. Useful for checking the consistency of data used together with the Results Checker actor.

Create an overview of a dataset by aggregating the possible variations from the selected fields Useful for checking the consistency of data used together with the Results Checker actor

Usage

Dataset format

1[{
2  "type": "type-1",
3  "categories": [
4    "cat 1",
5    "cat 2"
6  ],
7  "n": 1
8},{
9  "type": "type-2",
10  "categories": [
11    "cat 4",
12    "cat 5"
13  ],
14  "n": 2
15}]

INPUT

1{
2  "datasetId": "defaultDatasetId",
3  "fields": [
4    "type",
5    "categories",
6    "n"
7  ],
8  "split": {
9    "categories": " ",
10    "type": "-"
11  }
12}

OUTPUT

1{
2  "categories": {
3    "values": [
4      "cat",
5      "1",
6      "2",
7      "4",
8      "5"
9    ],
10    "count": 5,
11    "min": 1,
12    "max": 3,
13    "average": 2
14  },
15  "type": {
16    "values": [
17      "type",
18      "1",
19      "2"
20    ],
21    "count": 3,
22    "min": 1,
23    "max": 4,
24    "average": 2
25  },
26  "n": {
27    "values": [
28      1,
29      2
30    ],
31    "count": 2,
32    "min": 1,
33    "max": 2,
34    "average": 1
35  }
36}

License

Apache 2.0

Developer
Maintained by Community

Actor Metrics

  • 2 monthly users

  • 0 No stars yet

  • Created in Mar 2020

  • Modified a year ago