# pycvcqv
<div align="center">
[](https://pypi.org/project/pycvcqv/)
[](https://pypi.org/project/pycvcqv/)
[](https://github.com/MaaniBeigy/pycvcqv/actions?query=workflow%3Abuild)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/coverage.txt)
[](https://pepy.tech/project/pycvcqv)
[](https://buymeacoffee.com/maani)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/mypy.txt)
[](https://github.com/MaaniBeigy/pycvcqv/pulls?q=is%3Aopen+is%3Apr+label%3Adependencies)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/safety.txt)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/maintainability.txt)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/complexity.txt)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/pylint-log.txt)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/docstring.txt)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/black.txt)
[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/bandit.txt)
[](https://github.com/MaaniBeigy/pycvcqv/blob/master/.pre-commit-config.yaml)
[](https://github.com/MaaniBeigy/pycvcqv/blob/master/LICENSE)
pycvcqv, find homogeneity with confidence
Python port of [cvcqv](https://github.com/MaaniBeigy/cvcqv)
</div>
## Introduction
`pycvcqv` provides some easy-to-use functions to calculate the
Coefficient of Variation (`cv`) and Coefficient of Quartile Variation (`cqv`)
with confidence intervals provided with all available methods.
## Install
```bash
pip install pycvcqv
```
## Usage
```python
import pandas as pd
from pycvcqv import coefficient_of_variation, cqv
coefficient_of_variation(
data=[0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5, 4.4, 4.6, 5.4, 5.4],
multiplier=100,
)
# 64.6467
cqv(
data=[0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5, 4.4, 4.6, 5.4, 5.4],
multiplier=100,
)
# 51.7241
data = pd.DataFrame(
{
"col-1": pd.Series([0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5]),
"col-2": pd.Series([5.4, 5.4, 5.7, 5.8, 5.9, 6.0, 6.6, 7.1, 7.9]),
}
)
coefficient_of_variation(data=data, num_threads=3)
# columns cv
# 0 col-1 0.6076
# 1 col-2 0.1359
cqv(data=data, num_threads=-1)
# columns cqv
# 0 col-1 0.3889
# 1 col-2 0.0732
```
## Credits
[](https://github.com/TezRomacH/python-package-template)
This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template)
Raw data
{
"_id": null,
"home_page": "https://github.com/MaaniBeigy/pycvcqv",
"name": "pycvcqv",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "coefficient of variation, coefficient of quartile variation, data science",
"author": "MaaniBeigy",
"author_email": "manibeygi@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9e/ec/a44014e25674bab7200c19984eaf26dc675f46e8c98f575694118ef1e4e9/pycvcqv-0.1.17.tar.gz",
"platform": null,
"description": "# pycvcqv\n\n<div align=\"center\">\n\n[](https://pypi.org/project/pycvcqv/)\n[](https://pypi.org/project/pycvcqv/)\n[](https://github.com/MaaniBeigy/pycvcqv/actions?query=workflow%3Abuild)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/coverage.txt)\n[](https://pepy.tech/project/pycvcqv)\n[](https://buymeacoffee.com/maani)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/mypy.txt)\n[](https://github.com/MaaniBeigy/pycvcqv/pulls?q=is%3Aopen+is%3Apr+label%3Adependencies)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/safety.txt)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/maintainability.txt)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/complexity.txt)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/pylint-log.txt)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/docstring.txt)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/black.txt)\n[](https://raw.githubusercontent.com/MaaniBeigy/pycvcqv/main/.logs/bandit.txt)\n[](https://github.com/MaaniBeigy/pycvcqv/blob/master/.pre-commit-config.yaml)\n[](https://github.com/MaaniBeigy/pycvcqv/blob/master/LICENSE)\n\npycvcqv, find homogeneity with confidence\n\nPython port of [cvcqv](https://github.com/MaaniBeigy/cvcqv)\n\n</div>\n\n## Introduction\n\n`pycvcqv` provides some easy-to-use functions to calculate the\nCoefficient of Variation (`cv`) and Coefficient of Quartile Variation (`cqv`)\nwith confidence intervals provided with all available methods.\n\n## Install\n\n```bash\npip install pycvcqv\n```\n\n## Usage\n\n```python\nimport pandas as pd\nfrom pycvcqv import coefficient_of_variation, cqv\n\ncoefficient_of_variation(\n data=[0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5, 4.4, 4.6, 5.4, 5.4],\n multiplier=100,\n)\n# 64.6467\ncqv(\n data=[0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5, 4.4, 4.6, 5.4, 5.4],\n multiplier=100,\n)\n# 51.7241\ndata = pd.DataFrame(\n {\n \"col-1\": pd.Series([0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5]),\n \"col-2\": pd.Series([5.4, 5.4, 5.7, 5.8, 5.9, 6.0, 6.6, 7.1, 7.9]),\n }\n)\ncoefficient_of_variation(data=data, num_threads=3)\n# columns cv\n# 0 col-1 0.6076\n# 1 col-2 0.1359\ncqv(data=data, num_threads=-1)\n# columns cqv\n# 0 col-1 0.3889\n# 1 col-2 0.0732\n```\n\n## Credits\n\n[](https://github.com/TezRomacH/python-package-template)\nThis project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Coefficient of Variation (CV) and Coefficient of Quartile Variation (CQV) with Confidence Intervals (CI)",
"version": "0.1.17",
"project_urls": {
"Homepage": "https://github.com/MaaniBeigy/pycvcqv",
"Repository": "https://github.com/MaaniBeigy/pycvcqv"
},
"split_keywords": [
"coefficient of variation",
" coefficient of quartile variation",
" data science"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "88837b81ee711235f682c5f5a68a06c94fb262e1f34547062ca10c83a6b67116",
"md5": "cec45ac85a5b5e99f2c6f06d8a54c158",
"sha256": "974c4fbc723272d3bff48732e71be877180f759e106984f0d4496baae64eb2bf"
},
"downloads": -1,
"filename": "pycvcqv-0.1.17-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cec45ac85a5b5e99f2c6f06d8a54c158",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 12500,
"upload_time": "2024-08-15T07:22:40",
"upload_time_iso_8601": "2024-08-15T07:22:40.608754Z",
"url": "https://files.pythonhosted.org/packages/88/83/7b81ee711235f682c5f5a68a06c94fb262e1f34547062ca10c83a6b67116/pycvcqv-0.1.17-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9eeca44014e25674bab7200c19984eaf26dc675f46e8c98f575694118ef1e4e9",
"md5": "d25e789db2c74b7178dd6750c2048664",
"sha256": "b5560a261adc4ee36b18cf167d0de883731c7933161086af334f105a4c393f2d"
},
"downloads": -1,
"filename": "pycvcqv-0.1.17.tar.gz",
"has_sig": false,
"md5_digest": "d25e789db2c74b7178dd6750c2048664",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 9309,
"upload_time": "2024-08-15T07:22:41",
"upload_time_iso_8601": "2024-08-15T07:22:41.945141Z",
"url": "https://files.pythonhosted.org/packages/9e/ec/a44014e25674bab7200c19984eaf26dc675f46e8c98f575694118ef1e4e9/pycvcqv-0.1.17.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-15 07:22:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MaaniBeigy",
"github_project": "pycvcqv",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"requirements": [],
"lcname": "pycvcqv"
}