{"id":17458169,"url":"https://github.com/pocesar/actor-aggregate-fields","last_synced_at":"2025-04-02T21:29:45.064Z","repository":{"id":49881154,"uuid":"258084853","full_name":"pocesar/actor-aggregate-fields","owner":"pocesar","description":"Aggregate all possible variations for the selected fields","archived":false,"fork":false,"pushed_at":"2021-06-09T05:09:56.000Z","size":157,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T06:29:01.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pocesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-23T03:31:50.000Z","updated_at":"2023-03-04T05:53:58.000Z","dependencies_parsed_at":"2022-09-11T02:50:15.262Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/actor-aggregate-fields","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-aggregate-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-aggregate-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-aggregate-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Factor-aggregate-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/actor-aggregate-fields/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895466,"owners_count":20851277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-18T03:56:00.163Z","updated_at":"2025-04-02T21:29:45.032Z","avatar_url":"https://github.com/pocesar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aggregate fields\n\nCreate an overview of a dataset by aggregating the possible variations from the selected fields\nUseful for checking the consistency of data used together with the [Results Checker actor](https://apify.com/lukaskrivka/results-checker)\n\n## Usage\n\nDataset format\n\n```json\n[{\n  \"type\": \"type-1\",\n  \"categories\": [\n    \"cat 1\",\n    \"cat 2\"\n  ],\n  \"n\": 1\n},{\n  \"type\": \"type-2\",\n  \"categories\": [\n    \"cat 4\",\n    \"cat 5\"\n  ],\n  \"n\": 2\n}]\n```\n\nINPUT\n\n```json\n{\n  \"datasetId\": \"defaultDatasetId\",\n  \"fields\": [\n    \"type\",\n    \"categories\",\n    \"n\"\n  ],\n  \"split\": {\n    \"categories\": \" \",\n    \"type\": \"-\"\n  }\n}\n```\n\nOUTPUT\n\n```json\n{\n  \"categories\": {\n    \"values\": [\n      \"cat\",\n      \"1\",\n      \"2\",\n      \"4\",\n      \"5\"\n    ],\n    \"count\": 5,\n    \"min\": 1,\n    \"max\": 3,\n    \"average\": 2\n  },\n  \"type\": {\n    \"values\": [\n      \"type\",\n      \"1\",\n      \"2\"\n    ],\n    \"count\": 3,\n    \"min\": 1,\n    \"max\": 4,\n    \"average\": 2\n  },\n  \"n\": {\n    \"values\": [\n      1,\n      2\n    ],\n    \"count\": 2,\n    \"min\": 1,\n    \"max\": 2,\n    \"average\": 1\n  }\n}\n```\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Factor-aggregate-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Factor-aggregate-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Factor-aggregate-fields/lists"}