Aggregate Fields avatar
Aggregate Fields

Pricing

Pay per usage

Go to Store
Aggregate Fields

Aggregate Fields

pocesar/aggregate-fields

Developed by

Paulo Cesar

Maintained by Community

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.

0.0 (0)

Pricing

Pay per usage

0

Monthly users

2

Runs succeeded

>99%

Last modified

2 years ago

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

Pricing

Pricing model

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.