{"id":28494035,"url":"https://github.com/mulesoft/data-weave-analytics-library","last_synced_at":"2026-01-31T13:02:34.746Z","repository":{"id":41967733,"uuid":"442494940","full_name":"mulesoft/data-weave-analytics-library","owner":"mulesoft","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-14T19:35:04.000Z","size":89,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":120,"default_branch":"master","last_synced_at":"2025-06-08T09:47:47.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"DataWeave","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mulesoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-28T14:52:20.000Z","updated_at":"2024-11-14T19:35:05.000Z","dependencies_parsed_at":"2023-10-11T17:22:19.912Z","dependency_job_id":"5756d96c-a22b-451f-a111-f3ba4984116c","html_url":"https://github.com/mulesoft/data-weave-analytics-library","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mulesoft/data-weave-analytics-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-analytics-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-analytics-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-analytics-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-analytics-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mulesoft","download_url":"https://codeload.github.com/mulesoft/data-weave-analytics-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mulesoft%2Fdata-weave-analytics-library/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260097322,"owners_count":22958182,"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":"2025-06-08T09:38:05.339Z","updated_at":"2026-01-31T13:02:29.717Z","avatar_url":"https://github.com/mulesoft.png","language":"DataWeave","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataWeave Analytics Library\n\n[![Development Branch](https://github.com/mulesoft/data-weave-analytics-library/actions/workflows/master_workflow.yml/badge.svg?branch=master)](https://github.com/mulesoft/data-weave-analytics-library/actions/workflows/master_workflow.yml)\n\nThe DataWeave Analytics library provides a collection of simple functions\nintended to perform data analysis over datasets.\nDataWeave, which supports data transformations in multiple formats, is a\nfast analyzer for datasets. This library fills a gap in\nsome commonly used functionalities.\n\n## Overview\n\nThe `CSVSummary` on `analytics::summaries` consumes a CSV file and produces\na summary of the values on the different columns present in it.\n\nFor example, assume the following CSV input:\n\n```csv\nid,time,age\n1,234,18\n2,333,24\n3,108,15\n4,444,44\n```\n\nThe `CSVSummary` mapping produces the following JSON output from the CSV input:\n\n```json\n{\n  \"id\": {\n    \"mean\": 2.5,\n    \"modes\": [\n      \"1\",\n      \"2\",\n      \"3\",\n      \"4\"\n    ],\n    \"median\": 2.5,\n    \"stdev\": 1.118033988749895,\n    \"quartiles\": [\n      1.5,\n      2.5,\n      3.5\n    ]\n  },\n  \"time\": {\n    \"mean\": 279.75,\n    \"modes\": [\n      \"234\",\n      \"333\",\n      \"108\",\n      \"444\"\n    ],\n    \"median\": 283.5,\n    \"stdev\": 123.8999092009352523399554085511010,\n    \"quartiles\": [\n      171,\n      283.5,\n      388.5\n    ]\n  },\n  \"age\": {\n    \"mean\": 25.25,\n    \"modes\": [\n      \"18\",\n      \"24\",\n      \"15\",\n      \"44\"\n    ],\n    \"median\": 21,\n    \"stdev\": 11.29988937998952271159312403049506,\n    \"quartiles\": [\n      16.5,\n      21,\n      34\n    ]\n  }\n}\n```\n\nNotice that the result provides a summary consisting of the mean, the modes, the median,\nthe standard deviation, and the quartiles of the values of each column in the CSV file.\n\n## Contributions Welcome\n\nContributions to this project can be made through Pull Requests and Issues on the\n[GitHub Repository](https://github.com/mulesoft/data-weave-analytics-library).\n\nBefore creating a pull request review the following:\n\n* [LICENSE](https://github.com/mulesoft/data-weave-analytics-library/blob/master/LICENSE.txt)\n* [SECURITY](https://github.com/mulesoft/data-weave-analytics-library/blob/master/SECURITY.md)\n* [CODE_OF_CONDUCT](https://github.com/mulesoft/data-weave-analytics-library/blob/master/CODE_OF_CONDUCT.md)\n\nWhen you submit your pull request, you are asked to sign a contributor license agreement (CLA) if we don't have one on file for you.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmulesoft%2Fdata-weave-analytics-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmulesoft%2Fdata-weave-analytics-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmulesoft%2Fdata-weave-analytics-library/lists"}