{ "info": { "author": "Abel 'Akronix' Serrano Juste", "author_email": "akronix5@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Mathematics" ], "description": "Inequality Coefficients:\n========================\n\nThis is small library with some implemented coefficients (or indices)\nintended to measure inequality or concentration of the values in a\npopulation.\n\nImplemented coefficients\n-------------\n* Gini Coefficient:\n * Ordinary. Follows this formula:\n \n ![Gini formula](https://raw.githubusercontent.com/Grasia/inequality_coefficients/master/assets/gini_formula.png)\n \n * Corrected. Uses a correction for small datasets based on [Deltas,\n2003](https://doi.org/10.1162/rest.2003.85.1.226).\n* Ratio top / rest. Follows this formula:\n\n ![Ratio top formula](https://raw.githubusercontent.com/Grasia/inequality_coefficients/master/assets/ratio_10_90_formula.png)\n\nWhere k is is the ceil value for 100 - percentage you define.\nFor instance, if you take k = 10, you are getting the ratio of inequality between the top 10% percentage and the rest 90% percentage. In particular, this specific value of k is given to you directly by the `ratio_top10_rest()` function.\n\nInstallation\n------------\n\nThis library is hosted on PyPI, so installation is straightforward. The\neasiest way to install type this at the command line (Linux, Mac, or\nWindows):\n\n pip install inequality_coefficients\n\nThis library also depends on numpy, but `pip` should take of that for\nyou already.\n\nBasic Usage\n-----------\n\nFor the simplest, typical use cases, this tells you everything you need\nto know.:\n\n import inequality_coefficients as ineq\n data = array([1.7, 3.2 ...]) # data can be list of nums or numpy array\n gini_coeff = ineq.gini(data)\n ratio_top_rest = ineq.ratio_top10_rest(data)\n\n# Development\n\nTo setup the development environment install all the dev dependiencies with `pip install -r requirements.txt` and install the latest version in your sites-packages with `python setup.py develop`.\n\n## Run tests\n\nI use pytest. Install it with `pip install -U pytest` and run the test with the development setup with `pytest`.\n\n\nAcknowledgements\n----------------\n\nFirstly, I was based on Felipe Ortega's wikixray code for implementing the gini coefficient, however, my code has changed so much (I have even fixed a bug in his code) and also now I'm using numpy as backend.\n\nAnyway, I want to thank him for open sourcing that project.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Grasia/inequality_coefficients", "keywords": "inequality coefficient index gini ratio top", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "inequality-coefficients", "package_url": "https://pypi.org/project/inequality-coefficients/", "platform": "", "project_url": "https://pypi.org/project/inequality-coefficients/", "project_urls": { "Homepage": "https://github.com/Grasia/inequality_coefficients" }, "release_url": "https://pypi.org/project/inequality-coefficients/1.2.3/", "requires_dist": null, "requires_python": ">=3", "summary": "Coefficients to measure inequality.", "version": "1.2.3" }, "last_serial": 5133633, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7de5f685d316c0e001a136e721c902f5", "sha256": "67cdebb38a0c249aa8f07529c3514ca81fb71fa8a02c3c982f3a59938b41fd80" }, "downloads": -1, "filename": "inequality_coefficients-1.0.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "7de5f685d316c0e001a136e721c902f5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3996, "upload_time": "2019-04-10T18:01:59", "url": "https://files.pythonhosted.org/packages/26/20/19a3d49f809a103f32131f1f1b3ebcf6d189c3059263bb4bc83e42ed5485/inequality_coefficients-1.0.0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "a6dd6bdc76a2538152bfd364363cd7af", "sha256": "d04d1e1886741f36fd8fc7596889325fb79e39ed82069f564968638e4d36fa79" }, "downloads": -1, "filename": "inequality_coefficients-1.0.0-py3.6.egg", "has_sig": false, "md5_digest": "a6dd6bdc76a2538152bfd364363cd7af", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": ">=3", "size": 3874, "upload_time": "2019-04-10T18:02:01", "url": "https://files.pythonhosted.org/packages/31/1e/e1f25cb31f1445ed55d65ae8356afc0f53194af6c33a1a1cbd62981e5f04/inequality_coefficients-1.0.0-py3.6.egg" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "95054f2740a5b11d0b522a7556eb422f", "sha256": "0dccd5c6ef119cb018a65762f0ed3ce472ec67692afad710d7f59dbf10159918" }, "downloads": -1, "filename": "inequality_coefficients-1.0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "95054f2740a5b11d0b522a7556eb422f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4012, "upload_time": "2019-04-10T18:07:58", "url": "https://files.pythonhosted.org/packages/94/3a/5f24dd59a052e267bb6ee86b09877615f37820026054379f43ce85753c81/inequality_coefficients-1.0.1.linux-x86_64.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "baa80a83f83116a574c2d7a7e24941b3", "sha256": "d957eda00373021a85536f0d89f41ae3ae6e9a665270820601b3abb8205b3e5b" }, "downloads": -1, "filename": "inequality_coefficients-1.1.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "baa80a83f83116a574c2d7a7e24941b3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4201, "upload_time": "2019-04-10T18:39:53", "url": "https://files.pythonhosted.org/packages/3c/ae/cfe68ba0b8cc4b9a7471e4cc4217e6fe310712565f59e2cb5f66e511a3b3/inequality_coefficients-1.1.0.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "6ae6e617737fcca9e8ff54c4eb18d1d6", "sha256": "c59ea66fc816bab457f15e8091f07d2ab3c9890a2adbdc22953978bd5c9ae0b9" }, "downloads": -1, "filename": "inequality_coefficients-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ae6e617737fcca9e8ff54c4eb18d1d6", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": ">=3", "size": 5230, "upload_time": "2019-04-10T18:47:28", "url": "https://files.pythonhosted.org/packages/c9/6d/8dbdb5dd8cdc8a78b62a7f02bc817455130aa657ac75c272973aba301105/inequality_coefficients-1.1.0-py3-none-any.whl" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "6314329b62018615091443c0fb27892f", "sha256": "46c4092aca1bb22ccf5a0db86e5dbc0357cfe53bdc556ef7455ccd6efa547382" }, "downloads": -1, "filename": "inequality_coefficients-1.1.1.tar.gz", "has_sig": false, "md5_digest": "6314329b62018615091443c0fb27892f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2965, "upload_time": "2019-04-10T18:59:00", "url": "https://files.pythonhosted.org/packages/fe/c5/97666e53b69ad38c20e6176ed8d422cbda02e92d8176fe396acf8f4adc35/inequality_coefficients-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "ae7c199673b81f636e3afc3bd28be272", "sha256": "338e75fdded35bae57e7816d775c5617fe7db7f9d26e77f949b6d4096e52d662" }, "downloads": -1, "filename": "inequality_coefficients-1.2.0.tar.gz", "has_sig": false, "md5_digest": "ae7c199673b81f636e3afc3bd28be272", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 2992, "upload_time": "2019-04-11T17:07:39", "url": "https://files.pythonhosted.org/packages/36/af/80e37716b0a8e2147b474d7b23cf3b56a840974f608b0c9faf7be44e0a95/inequality_coefficients-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "cc555356ab030f1f3f874345056e0974", "sha256": "b9c190df6859953dd0cf257ba0b0b4fd6ce16e37a2a11fcb8fbdbce3d9448e63" }, "downloads": -1, "filename": "inequality_coefficients-1.2.1.tar.gz", "has_sig": false, "md5_digest": "cc555356ab030f1f3f874345056e0974", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3187, "upload_time": "2019-04-11T17:15:51", "url": "https://files.pythonhosted.org/packages/9b/7c/3fb2d03d29b310d7bc3b83550ff62ef30bb862c11bc11b8e8d55f27404b4/inequality_coefficients-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "6690c18ca8fbdedb2967c0fda17a5119", "sha256": "193a1f5f109358464f2496fcec4461aeecac2b5269cf44039528f6dce2e4c858" }, "downloads": -1, "filename": "inequality_coefficients-1.2.2.tar.gz", "has_sig": false, "md5_digest": "6690c18ca8fbdedb2967c0fda17a5119", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3206, "upload_time": "2019-04-11T17:19:19", "url": "https://files.pythonhosted.org/packages/f1/c2/e5364cafb64c990100cc2a704c5179142bd9dc05f3446e0a08d27bcc3444/inequality_coefficients-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "786c1997b53b3eb31dc149c7c6b8538d", "sha256": "876b3c02dabb64c75059b46fc31fe3ea934d80db8d567fa0791272243aef93ea" }, "downloads": -1, "filename": "inequality_coefficients-1.2.3.tar.gz", "has_sig": false, "md5_digest": "786c1997b53b3eb31dc149c7c6b8538d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3256, "upload_time": "2019-04-12T11:43:25", "url": "https://files.pythonhosted.org/packages/09/64/f398fc0684471b12342cfbbafa1f73736ec39cec7d0a9d4ccba785ac62f6/inequality_coefficients-1.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "786c1997b53b3eb31dc149c7c6b8538d", "sha256": "876b3c02dabb64c75059b46fc31fe3ea934d80db8d567fa0791272243aef93ea" }, "downloads": -1, "filename": "inequality_coefficients-1.2.3.tar.gz", "has_sig": false, "md5_digest": "786c1997b53b3eb31dc149c7c6b8538d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3256, "upload_time": "2019-04-12T11:43:25", "url": "https://files.pythonhosted.org/packages/09/64/f398fc0684471b12342cfbbafa1f73736ec39cec7d0a9d4ccba785ac62f6/inequality_coefficients-1.2.3.tar.gz" } ] }