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.

[1] for PC-Axis information
[2] for Python Data Analysis Library information


For installation:

pip install pyaxis


From PX to pandas DataFrame

Typical usage often looks like this:

from pyaxis import pyaxis


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.

Files for pyaxis, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pyaxis-0.2.0-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pyaxis-0.2.0.tar.gz (294.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page