Skip to main content

Label the rows, columns, any dimension, of your NumPy arrays.

Project description

The main class of the la package is a labeled array, larry. A larry consists of a data array and a label list. The data array is stored as a NumPy array and the label list as a list of lists.

Alignment by label is automatic when you add (or subtract, multiply, divide) two larrys.

larry has built-in methods such as movingsum, ranking, merge, shuffle, zscore, demean, lag as well as typical Numpy methods like sum, max, std, sign, clip. NaNs are treated as missing data.

You can archive larrys in HDF5 format using save and load or using a dictionary-like interface.

larry adds the convenience of labels, provides many built-in methods, and let’s you use many of your existing NumPy array functions.

Note There’s nothing to compile; la is pure Python.

docs

http://berkeleyanalytics.com/la

code

http://github.com/kwgoodman/la

issues

http://github.com/kwgoodman/la/issues

list

http://groups.google.com/group/labeled-array

This is an old version. Click here for latest version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

la-0.1.0.zip (143.3 kB view details)

Uploaded Source

la-0.1.0.tar.gz (125.3 kB view details)

Uploaded Source

File details

Details for the file la-0.1.0.zip.

File metadata

  • Download URL: la-0.1.0.zip
  • Upload date:
  • Size: 143.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for la-0.1.0.zip
Algorithm Hash digest
SHA256 7c58f2aad14f1be70d3ce9a714b13b3cef233080c8051db9fed7ddd8c5570202
MD5 4d5add1d0c6f8d0fa4fa08516314a3f7
BLAKE2b-256 3850e7288cacaeae5aa12507222b59b0779527069f4fd54e241d73aac1dab2d5

See more details on using hashes here.

File details

Details for the file la-0.1.0.tar.gz.

File metadata

  • Download URL: la-0.1.0.tar.gz
  • Upload date:
  • Size: 125.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for la-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e825f513196424bb809e1afe5f28a0fc3832c49e8407710c907d9f7a082d8eb9
MD5 b756b3cf0f064aa849bc09adce356147
BLAKE2b-256 5b78f08ebb483faa20b2f41070bc3663397e28d97336b7e08d2e6eade31c5252

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page