{ "info": { "author": "Jonhnny Weslley", "author_email": "jw@jonhnnyweslley.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Scientific/Engineering" ], "description": "stats-tools - A set of command-line statistics tools\n====================================================\n\n.. contents::\n\nInstallation\n------------\n\nDependencies\n````````````\n * numpy\n * scipy\n\nOn Debian systems, you may install them by running::\n\n sudo apt-get install python-numpy python-scipy\n\nInstalling stats-tools\n``````````````````````\n\nInstall ``stats-tools`` by using ``easy_install``::\n\n sudo easy_install stats-tools\n\nOr checkout from git repository::\n\n git clone git://github.com/jweslley/stats-tools.git\n cd stats-tools\n sudo python setup.py install\n\n\nUtilities\n---------\n\n * **min** - Calculate the minimum of a number sequence\n * **max** - Calculate the maximum of a number sequence\n * **mean** - Calculate the mean of a number sequence\n * **median** - Calculate the median of a number sequence\n * **std** - Calculate the standard deviation of a number sequence\n * **var** - Calculate the variance of a number sequence\n * **sum** - Calculate the sum of a number sequence\n * **stats** - Output a summary table including mean, median, mininum, maximum, standard deviation and variance of a number sequence\n * **summary** - Output a summary table including minimum, lower quartile, median, upper quartile, maximum of a number sequence\n * **fivenum** - Calculate Tukey's five number summary (minimum, lower-hinge, median, upper-hinge, maximum) of a number sequence based on 1.5 times the interquartile distance\n\n\nUsage\n-----\n\nAll utilities take as input a file in table format to perform some calculation based on it. A tipical input file is shown below::\n\n 1 2 4\n 3 5 4\n 6 4 6\n 4 5 6\n 9 12 16\n\nConsidering this input file, let's call it ``example1.dat``, you can calculate some statistics like:\n\nThe ``max`` value on the first column::\n\n max example1.dat\n\nThe ``min`` value on the second column::\n\n min -c 2 example1.dat\n\nYou still can use negative column numbers to start counting from the right. Thus, the ``sum`` of the values on last column::\n\n sum -c -1 example1.dat\n\nIf the input file's columns are separated by another character instead of whitespace characters (space, tab, newline, return, formfeed), like CSV files, you can use the ``-s`` option to denote this. The next example outputs a statistical ``summary`` about the second column of the following file (``example2.dat``)::\n\n \"A\",10,12\n \"A\",11,14\n \"B\",5,8\n \"B\",6,10\n \"A\",10.5,13\n \"B\",7,11\n\nCalculating the summary::\n\n summary -c 2 -s , example2.dat\n\nCommonly, data files may contain a head, i.e., the first line describes the columns, something like the ``example3.dat`` file showed below::\n\n Year,Make,Model,Description,Price\n 1997,Ford,E350,\"ac abs moon\",3000.00\n 1999,Chevy,\"Venture \"\"Extended Edition\"\"\",\"\",4900.00\n 1999,Chevy,\"Venture \"\"Extended Edition, Very Large\"\"\",\"\",5000.00\n 1996,Jeep,Grand Cherokee,\"MUST SELL!air, moon roof, loaded\",4799.00\n\nThe ``-b`` option remove the first line from calculations. In this case, the mean price of the cars is given by::\n\n mean -b -s, -c-1 test/example3.dat\n\n\nPiping data\n```````````\n\nAll ``stats-tools`` read data from standard input if no file is passed to them. The following command calculates the max value on the second column containing the word ``bar`` in the file ``foo.dat``::\n\n grep bar foo.dat | max -c 2\n\n\nBugs and Feedback\n-----------------\n\nIf you discover any bugs or have some idea, feel free to create an issue on GitHub:\n \n``_\n\n\nLicense\n-------\n\nMIT license. Copyright (c) 2011 Jonhnny Weslley \n\nSee the LICENSE file provided with the source distribution for full details.", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/jweslley/stats-tools/tarball/v0.1.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jweslley/stats-tools", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "stats-tools", "package_url": "https://pypi.org/project/stats-tools/", "platform": "Linux,Unix,Mac OS X,Windows", "project_url": "https://pypi.org/project/stats-tools/", "project_urls": { "Download": "http://github.com/jweslley/stats-tools/tarball/v0.1.0", "Homepage": "http://github.com/jweslley/stats-tools" }, "release_url": "https://pypi.org/project/stats-tools/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A set of command-line statistics tools", "version": "0.1.0" }, "last_serial": 800100, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fba5e440f55ed99cd4bb714186628794", "sha256": "66d933c547f406d037dca7aae39bf6fbaf10901e14469174f96858b2b9c08e93" }, "downloads": -1, "filename": "stats-tools-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fba5e440f55ed99cd4bb714186628794", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2695, "upload_time": "2011-01-06T15:51:31", "url": "https://files.pythonhosted.org/packages/73/98/4b85bde5149b4469ecdebfad333fa2c01d83c2a5ec932fbd3daea8879020/stats-tools-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fba5e440f55ed99cd4bb714186628794", "sha256": "66d933c547f406d037dca7aae39bf6fbaf10901e14469174f96858b2b9c08e93" }, "downloads": -1, "filename": "stats-tools-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fba5e440f55ed99cd4bb714186628794", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2695, "upload_time": "2011-01-06T15:51:31", "url": "https://files.pythonhosted.org/packages/73/98/4b85bde5149b4469ecdebfad333fa2c01d83c2a5ec932fbd3daea8879020/stats-tools-0.1.0.tar.gz" } ] }