{ "info": { "author": "Keith Goodman", "author_email": "labeled-array@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Cython", "Programming Language :: Python", "Topic :: Scientific/Engineering" ], "description": "The main class of the la package is a labeled array, larry. A larry consists\r\nof data and labels. The data is stored as a NumPy array and the labels as a\r\nlist of lists (one list per dimension).\r\n\r\nHere's larry in schematic form::\r\n\r\n date1 date2 date3\r\n 'AAPL' 209.19 207.87 210.11\r\n y = 'IBM' 129.03 130.39 130.55\r\n 'DELL' 14.82 15.11 14.94\r\n \r\nThe larry above is stored internally as a `Numpy `_\r\narray and a list of lists::\r\n\r\n y.label = [['AAPL', 'IBM', 'DELL'], [date1, date2, date3]]\r\n y.x = np.array([[209.19, 207.87, 210.11],\r\n [129.03, 130.39, 130.55],\r\n [ 14.82, 15.11, 14.94]]) \r\n \r\nA larry can have any number of dimensions except zero. Here, for example, is\r\none way to create a one-dimensional larry::\r\n\r\n >>> import la\r\n >>> y = la.larry([1, 2, 3])\r\n \r\nIn the statement above the list is converted to a Numpy array and the labels\r\ndefault to ``range(n)``, where *n* in this case is 3.\r\n \r\nlarry has built-in methods such as **ranking, merge, shuffle, move_sum,\r\nzscore, demean, lag** as well as typical Numpy methods like **sum, max, std,\r\nsign, clip**. NaNs are treated as missing data.\r\n \r\nAlignment by label is automatic when you add (or subtract, multiply, divide)\r\ntwo larrys. You can also specify the join method (inner, outer, left, right)\r\nfor binary operations on two larrys with unaligned labels.\r\n \r\nYou can archive larrys in HDF5 format using **save** and **load** or using a\r\ndictionary-like interface::\r\n\r\n >>> io = la.IO('/tmp/dataset.hdf5')\r\n >>> io['y'] = y # <--- save\r\n >>> z = io['y'] # <--- load\r\n >>> del io['y'] # <--- delete from archive\r\n \r\nFor the most part larry acts like a Numpy array. And, whenever you want,\r\nyou have direct access to the Numpy array that holds your data. For\r\nexample if you have a function, *myfunc*, that works on Numpy arrays and\r\ndoesn't change the shape or ordering of the array, then you can use it on a\r\nlarry, *y*, like this::\r\n\r\n y.x = myfunc(y.x)\r\n \r\nlarry adds the convenience of labels, provides many built-in methods, and\r\nlet's you use your existing array functions. \r\n\r\nLicense\r\n=======\r\n\r\nThe ``la`` package is distributed under a Simplified BSD license. Parts of\r\nNumPy, Scipy, and numpydoc, which all have BSD licenses, are included in\r\n``la``. Parts of matplotlib are also included. See the LICENSE file, which\r\nis distributed with the ``la`` package, for details.\r\n\r\nInstall\r\n=======\r\n\r\nRequirements:\r\n\r\n======================== ====================================================\r\nla Python, NumPy 1.5.1-1.6.1, Bottleneck 0.5.0\r\nUnit tests nose\r\n======================== ====================================================\r\n\r\nOptional:\r\n\r\n============================= ================================================\r\nArchive larrys in HDF5 h5py, HDF 1.8\r\nCompile for speed boost gcc or MinGW\r\nlar.ranking(norm='gaussian') SciPy 0.8.0, 0.9.0\r\n============================= ================================================\r\n\r\nYou can download the `latest version of la `_\r\nand `Bottleneck `_ from the Python\r\nPackage Index.\r\n \r\n**GNU/Linux, Mac OS X et al.**\r\n\r\nTo install ``la``::\r\n\r\n $ python setup.py build\r\n $ sudo python setup.py install\r\n \r\nOr, if you wish to specify where ``la`` is installed, for example inside\r\n``/usr/local``::\r\n\r\n $ python setup.py build\r\n $ sudo python setup.py install --prefix=/usr/local\r\n\r\nAlternatively, you can use the makefile to install ``la`` inplace::\r\n\r\n $ make all\r\n\r\n**Windows**\r\n\r\nIn order to (optionally) compile the C code in the ``la`` package you need a\r\nWindows version of the gcc compiler. MinGW (Minimalist GNU for Windows)\r\ncontains gcc and has been used to successfully compile ``la`` on Windows.\r\n\r\nInstall MinGW and add it to your system path. Then install ``la`` with the\r\ncommands::\r\n\r\n python setup.py build --compiler=mingw32\r\n python setup.py install\r\n\r\n**Post install**\r\n\r\nAfter you have installed ``la``, run the suite of unit tests::\r\n\r\n >>> import la\r\n >>> la.test()\r\n \r\n Ran 3063 tests in 1.408s\r\n OK\r\n \r\n \r\nThe ``la`` package contains C extensions that speed up common alignment\r\noperations such as adding two unaligned larrys. If the C extensions don't\r\ncompile when you build ``la`` then there's an automatic fallback to python\r\nversions of the functions. To see whether you are using the C functions or the\r\nPython functions::\r\n\r\n >>> la.info()\r\n la version 0.6.0 \r\n la file /usr/local/lib/python2.6/dist-packages/la/__init__.pyc\r\n NumPy 1.6.0 \r\n Bottleneck 0.5.0\r\n HDF5 archiving Available (h5py 2.0.0) \r\n listmap Faster C version\r\n listmap_fill Faster C version \r\n \r\nSince ``la`` can run in a pure python mode, you can use ``la`` by just saving\r\nit and making sure that python can find it. \r\n \r\nURLs\r\n====\r\n\r\n=============== ========================================================\r\n download http://pypi.python.org/pypi/la\r\n docs http://berkeleyanalytics.com/la\r\n code https://github.com/kwgoodman/la\r\n mailing list http://groups.google.com/group/labeled-array\r\n issue tracker https://github.com/kwgoodman/la/issues\r\n=============== ========================================================", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/la", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://berkeleyanalytics.com/la", "keywords": "", "license": "Simplified BSD", "maintainer": "", "maintainer_email": "", "name": "la", "package_url": "https://pypi.org/project/la/", "platform": "OS Independent", "project_url": "https://pypi.org/project/la/", "project_urls": { "Download": "http://pypi.python.org/pypi/la", "Homepage": "http://berkeleyanalytics.com/la" }, "release_url": "https://pypi.org/project/la/0.6.0/", "requires_dist": null, "requires_python": null, "summary": "Label the rows, columns, any dimension, of your NumPy arrays.", "version": "0.6.0" }, "last_serial": 1416470, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b756b3cf0f064aa849bc09adce356147", "sha256": "e825f513196424bb809e1afe5f28a0fc3832c49e8407710c907d9f7a082d8eb9" }, "downloads": -1, "filename": "la-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b756b3cf0f064aa849bc09adce356147", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 125313, "upload_time": "2010-02-03T23:21:27", "url": "https://files.pythonhosted.org/packages/5b/78/f08ebb483faa20b2f41070bc3663397e28d97336b7e08d2e6eade31c5252/la-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "4d5add1d0c6f8d0fa4fa08516314a3f7", "sha256": "7c58f2aad14f1be70d3ce9a714b13b3cef233080c8051db9fed7ddd8c5570202" }, "downloads": -1, "filename": "la-0.1.0.zip", "has_sig": false, "md5_digest": "4d5add1d0c6f8d0fa4fa08516314a3f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 143256, "upload_time": "2010-02-03T23:22:04", "url": "https://files.pythonhosted.org/packages/38/50/e7288cacaeae5aa12507222b59b0779527069f4fd54e241d73aac1dab2d5/la-0.1.0.zip" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d664ca6e1dbee3ae848e2b8fd64d38d8", "sha256": "fc81bf7c33c85749bdd002492938407dc0569a4d3ad8aaa6a34f331318d4de52" }, "downloads": -1, "filename": "la-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d664ca6e1dbee3ae848e2b8fd64d38d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 142470, "upload_time": "2010-04-27T22:49:51", "url": "https://files.pythonhosted.org/packages/a3/0a/e3b7640f1a74eb5b429b1df928eba86924ba7918eeab054b3cbd07529ceb/la-0.2.0.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c56036e802aeafa73fcc6fc088657ef9", "sha256": "54791214fb44fc00449466c22029afbf7bc2214546486ab13c40e6e717f2f44b" }, "downloads": -1, "filename": "la-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c56036e802aeafa73fcc6fc088657ef9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 164891, "upload_time": "2010-06-04T19:40:41", "url": "https://files.pythonhosted.org/packages/34/fb/0732341806c46d6d77e9d8e2b0d4aa91679166ab527e32bc9a89c0d2e4d2/la-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "b251cf53590cad7af0093394faccc179", "sha256": "39dadce33cdb97bf3b8ec4b225367eaa0bf440659b0078c08c0b761716f052dc" }, "downloads": -1, "filename": "la-0.4.0.tar.gz", "has_sig": false, "md5_digest": "b251cf53590cad7af0093394faccc179", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 169381, "upload_time": "2010-07-06T17:28:29", "url": "https://files.pythonhosted.org/packages/07/3c/07d07e83fff5c329264467b40412ef87d70204e28f16bf7bd1b0284dadd8/la-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "f76996d4deadadf3b60ed31e70576906", "sha256": "d84658769a5f5b1c42ba5c52ef96fceecc907900e91247532455af10663c41c5" }, "downloads": -1, "filename": "la-0.5.0.tar.gz", "has_sig": false, "md5_digest": "f76996d4deadadf3b60ed31e70576906", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 180399, "upload_time": "2011-04-28T22:40:35", "url": "https://files.pythonhosted.org/packages/ad/68/19b984eda01e1f7caabb58f6360430c648b4c1b473e366a06d772741e1ad/la-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "94fe960d4d8bf1e92781990afb4e018d", "sha256": "7b8ac17625e129d7798ca6b1976dbcb614d83dd1353b2c926c4d31f4e339c419" }, "downloads": -1, "filename": "la-0.6.0.tar.gz", "has_sig": false, "md5_digest": "94fe960d4d8bf1e92781990afb4e018d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 185291, "upload_time": "2012-03-19T22:19:41", "url": "https://files.pythonhosted.org/packages/aa/3a/311da37993baa3de2a264f883a17a0f00732572765c1b9bae81df5d9dad3/la-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "94fe960d4d8bf1e92781990afb4e018d", "sha256": "7b8ac17625e129d7798ca6b1976dbcb614d83dd1353b2c926c4d31f4e339c419" }, "downloads": -1, "filename": "la-0.6.0.tar.gz", "has_sig": false, "md5_digest": "94fe960d4d8bf1e92781990afb4e018d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 185291, "upload_time": "2012-03-19T22:19:41", "url": "https://files.pythonhosted.org/packages/aa/3a/311da37993baa3de2a264f883a17a0f00732572765c1b9bae81df5d9dad3/la-0.6.0.tar.gz" } ] }