Skip to main content

Library to handle PC-Axis data in python using pandas DataFrames.

Project description

pyaxis is a python library for PC-Axis (or PX) formatted data manipulation which allows reading and writing PC-Axis [1] format with python, using the DataFrame structures provided by the widely accepted pandas library [2]. PX is a standard format for statistical files used by a large number of statistical offices. A package of software has been developed for this format: PX-Win, PX-Web and PX-Edit. pyaxis eases reading and parsing of PX files data and metadata into a pandas Dataframe and a dict structure, allowing their manipulation in a tabular and pythonic manner. pyaxis is provided under the Apache License 2.0.

Installation

For installation:

pip install pyaxis

Usage

From PX to pandas DataFrame

Typical usage often looks like this:

from pyaxis import pyaxis

EXAMPLE_URL = 'http://www.ine.es/jaxiT3/files/t/es/px/2184.px'

px = pyaxis.parse(EXAMPLE_URL, encoding=encoding='ISO-8859-2')
print px['DATA']
print px['METADATA']

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

pyaxis-0.3.0.tar.gz (33.0 kB view details)

Uploaded Source

File details

Details for the file pyaxis-0.3.0.tar.gz.

File metadata

  • Download URL: pyaxis-0.3.0.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.2

File hashes

Hashes for pyaxis-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0cb55fcf62aef193f6c8a530532fab19f3eeffb70ecf971b2c6ca27320d1d726
MD5 e9a326cdd5b2df28c5b1ab7730b516e1
BLAKE2b-256 f9b3d2a93541cdec33e5c23c3050cbdb2cbb9b6e213f01190ecab0a469b839ae

See more details on using hashes here.

Provenance

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