Skip to main content

N-D labeled arrays in Python

Project description

LArray: N-dimensional labelled arrays

CI status Documentation Status

LArray is an open source Python library that aims to provide tools for easy exploration and manipulation of N-dimensional labelled data structures.

Library Highlights

  • N-dimensional labelled array objects to store and manipulate multi-dimensional data

  • I/O functions for reading and writing arrays in different formats: CSV, Microsoft Excel, HDF5, pickle

  • Arrays can be grouped into Session objects and loaded/dumped at once

  • User interface with an IPython console for rapid exploration of data

  • Compatible with the pandas library: Array objects can be converted into pandas DataFrame and vice versa.

Installation

Pre-built binaries

The easiest route to installing larray is through Conda. For all platforms installing larray can be done with:

conda install -c larray-project larray

This will install a lightweight version of larray depending only on Numpy and Pandas libraries only. Additional libraries are required to use the included graphical user interface, make plots or use special I/O functions for easy dump/load from Excel or HDF files. Optional dependencies are described below.

Installing larray with all optional dependencies can be done with

conda install -c larray-project larrayenv

You can also first add the channel larray-project to your channel list

conda config --add channels larray-project

and then install larray (or larrayenv) as

conda install larray

Building from source

The latest release of LArray is available from https://github.com/larray-project/larray.git

Once you have satisfied the requirements detailed below, simply run:

python setup.py install

Required Dependencies

  • Python 3.9, 3.10, 3.11, 3.12, 3.13 or 3.14

  • numpy (1.22 or later)

  • pandas (0.20 or later)

Optional Dependencies

For IO (HDF, Excel)

  • pytables: for working with files in HDF5 format.

  • xlwings: recommended package to get benefit of all Excel features of LArray. Only available on Windows and Mac platforms.

  • openpyxl: recommended package for reading and writing Excel 2010 files (ie: .xlsx)

  • xlsxwriter: alternative package for writing data, formatting information and, in particular, charts in the Excel 2010 format (ie: .xlsx)

  • xlrd: for reading data and formatting information from older Excel files (ie: .xls)

  • xlwt:

    for writing data and formatting information to older Excel files (ie: .xls)

  • larray_eurostat: provides functions to easily download EUROSTAT files as larray objects. Currently limited to TSV files.

For Graphical User Interface

LArray includes a graphical user interface to view, edit and compare arrays.

  • pyqt (version 5): required by larray-editor (see below).

  • pyside: alternative to PyQt.

  • qtpy: required by larray-editor.

  • larray-editor: required to use the graphical user interface associated with larray. It assumes that qtpy and either pyqt or pyside are installed. On windows, creates also a menu LArray in the Windows Start Menu.

For plotting

Miscellaneous

  • pydantic: required to use CheckedSession.

Documentation

The official documentation is hosted on ReadTheDocs at http://larray.readthedocs.io/en/stable/

Get in touch

  • To be informed of each new release, please subscribe to the announce mailing list.

  • For questions, ideas or general discussion, please use the Google Users Group.

  • To report bugs, suggest features or view the source code, please go to our GitHub website.

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

larray-0.35.2.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

larray-0.35.2-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file larray-0.35.2.tar.gz.

File metadata

  • Download URL: larray-0.35.2.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for larray-0.35.2.tar.gz
Algorithm Hash digest
SHA256 b3847e9a411bbbb7c51734bed154b00fd5397337386ce62c0deab2139bc6890a
MD5 20eb7a878cea6b7b028f6b12a82a201b
BLAKE2b-256 4a6559c36b2c692aad555490d46256272c91c71a6d47e3eb58fc05b67a9c09d0

See more details on using hashes here.

File details

Details for the file larray-0.35.2-py3-none-any.whl.

File metadata

  • Download URL: larray-0.35.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for larray-0.35.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c42a98eecde8183538f7f45711e518ad4b2b8369e53ffcd8e00f946103e766ef
MD5 1b5a14dd79b19a62fe8e35aaba3ca195
BLAKE2b-256 ef9acfc7d67a68ea3918ab6fc782516720e5769a2cb046b90122ea2c930323ff

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