{ "info": { "author": "Jack Peterson", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "WeightedStats\n=============\n\n.. image:: https://travis-ci.org/tinybike/weightedstats.svg?branch=master\n :target: https://travis-ci.org/tinybike/weightedstats\n\n.. image:: https://coveralls.io/repos/tinybike/weightedstats/badge.svg?branch=master :target: https://coveralls.io/r/tinybike/weightedstats?branch=master\n\n.. image:: https://badge.fury.io/py/weightedstats.svg\n :target: http://badge.fury.io/py/weightedstats\n\nPython functions to calculate the mean, weighted mean, median, and weighted median.\n\nInstallation\n^^^^^^^^^^^^\n\nThe easiest way to install WeightedStats is to use pip::\n\n $ pip install weightedstats\n\nUsage\n^^^^^\n\nWeightedStats includes four functions (mean, weighted_mean, median, weighted_median) which accept lists as arguments, and two functions (numpy_weighted_mean, numpy weighted_median) which accept either lists or numpy arrays.\n\nExample::\n\n import weightedstats as ws\n\n my_data = [1, 2, 3, 4, 5]\n my_weights = [10, 1, 1, 1, 9]\n\n # Ordinary (unweighted) mean and median\n ws.mean(my_data) # equivalent to ws.weighted_mean(my_data)\n ws.median(my_data) # equivalent to ws.weighted_median(my_data)\n \n # Weighted mean and median\n ws.weighted_mean(my_data, weights=my_weights)\n ws.weighted_median(my_data, weights=my_weights)\n\n # Special weighted mean and median functions for use with numpy arrays\n ws.numpy_weighted_mean(my_data, weights=my_weights)\n ws.numpy_weighted_median(my_data, weights=my_weights)\n\nTests\n^^^^^\n\nUnit tests are in the test/ directory.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/tinybike/weightedstats/tarball/0.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tinybike/weightedstats", "keywords": "weights,mean,median,numpy,statistics", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "weightedstats", "package_url": "https://pypi.org/project/weightedstats/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/weightedstats/", "project_urls": { "Download": "https://github.com/tinybike/weightedstats/tarball/0.3", "Homepage": "https://github.com/tinybike/weightedstats" }, "release_url": "https://pypi.org/project/weightedstats/0.3/", "requires_dist": null, "requires_python": null, "summary": "Mean, weighted mean, median, weighted median", "version": "0.3" }, "last_serial": 1393142, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7a02708801ab9b146c32e469fed2fe8c", "sha256": "6942783311ad17c070def5a43492e7913295b7fd0181d7bda1748dd75c6c660c" }, "downloads": -1, "filename": "weightedstats-0.1.tar.gz", "has_sig": false, "md5_digest": "7a02708801ab9b146c32e469fed2fe8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2781, "upload_time": "2014-09-27T11:39:30", "url": "https://files.pythonhosted.org/packages/cc/08/967693139bdf637817dcd0b54f7c942ea00601161e688282086c837e5913/weightedstats-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "72e5194b4d07a90b0cf82b18da0e58e3", "sha256": "a1d8d34d924dd73142af84b4095b6bb8c63681e9511d17074f6979058ebedc84" }, "downloads": -1, "filename": "weightedstats-0.2.tar.gz", "has_sig": false, "md5_digest": "72e5194b4d07a90b0cf82b18da0e58e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3882, "upload_time": "2014-09-27T19:29:43", "url": "https://files.pythonhosted.org/packages/d2/92/85c4033356dc1bca52920cdc2c5a00d79b0e83b8424013def47051f8b488/weightedstats-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "384425bed14230a7bcccd0c39ca5dc04", "sha256": "c5fd858e44242b02530417c90e3bd79bc939d0fc68c684e92e8ed21ea3f48f18" }, "downloads": -1, "filename": "weightedstats-0.3.tar.gz", "has_sig": false, "md5_digest": "384425bed14230a7bcccd0c39ca5dc04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3916, "upload_time": "2015-01-23T12:30:43", "url": "https://files.pythonhosted.org/packages/80/1a/51d0ee93ed4cbedbf007b3967bc35612de6c254855dd09adc2b8cf3165f8/weightedstats-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "384425bed14230a7bcccd0c39ca5dc04", "sha256": "c5fd858e44242b02530417c90e3bd79bc939d0fc68c684e92e8ed21ea3f48f18" }, "downloads": -1, "filename": "weightedstats-0.3.tar.gz", "has_sig": false, "md5_digest": "384425bed14230a7bcccd0c39ca5dc04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3916, "upload_time": "2015-01-23T12:30:43", "url": "https://files.pythonhosted.org/packages/80/1a/51d0ee93ed4cbedbf007b3967bc35612de6c254855dd09adc2b8cf3165f8/weightedstats-0.3.tar.gz" } ] }