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 Distribution

la-0.2.0.tar.gz (142.5 kB view hashes)

Uploaded source

Supported by

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