Skip to main content

NumPy arrays with named axes and named indices.

Project description

Scientists, engineers, mathematicians and statisticians don’t just work with matrices; they often work with structured data, just like you’d find in a table. However, functionality for this is missing from Numpy, and there are efforts to create something to fill the void. This is one of those efforts.

Datarray provides a subclass of Numpy ndarrays that support:

  • individual dimensions (axes) being labeled with meaningful descriptions

  • labeled ‘ticks’ along each axis

  • indexing and slicing by named axis

  • indexing on any axis with the tick labels instead of only integers

  • reduction operations (like .sum, .mean, etc) support named axis arguments instead of only integer indices.

Prior Art

At present, there is no accepted standard solution to dealing with tabular data such as this. However, based on the following list of ad-hoc and proposal-level implementations of something such as this, there is definitely a demand for it. For examples, in no particular order:

Project Goals

  1. Get something akin to this in the numpy core.

2. Stick to basic functionality such that projects like scikits.statsmodels and pandas can use it as a base datatype.

3. Make an interface that allows for simple, pretty manipulation that doesn’t introduce confusion.

  1. Oh, and make sure that the base numpy array is still accessible.

Code

You can find our sources and single-click downloads:

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

datarray-0.0.6.zip (74.8 kB view details)

Uploaded Source

datarray-0.0.6.tar.gz (63.8 kB view details)

Uploaded Source

File details

Details for the file datarray-0.0.6.zip.

File metadata

  • Download URL: datarray-0.0.6.zip
  • Upload date:
  • Size: 74.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for datarray-0.0.6.zip
Algorithm Hash digest
SHA256 eb7f0dc0ae9f32bdc608760140fad58405053144023434b7f06e65a7aee264c6
MD5 d08e30c467b56a123b538db914522a6b
BLAKE2b-256 74430b3de39d56ec379298af31a8898ff5e214d2cf9d093085a92a0e4c1b7810

See more details on using hashes here.

File details

Details for the file datarray-0.0.6.tar.gz.

File metadata

  • Download URL: datarray-0.0.6.tar.gz
  • Upload date:
  • Size: 63.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for datarray-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1b3e45b1ccc01fe9c4136ebb95d815dc6f5b99accd873b810b63328189782302
MD5 5aa4baa7742e40de908b0b28a5118461
BLAKE2b-256 73c2efb691c4cc260c394f073d42053604327ba6bbf9764e3a04aae78832ccd3

See more details on using hashes here.

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