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
Built Distribution
File details
Details for the file pyaxis-0.2.0.tar.gz
.
File metadata
- Download URL: pyaxis-0.2.0.tar.gz
- Upload date:
- Size: 294.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc5ba1a76536e133285803913ecddbeec76b0b8d7779a9f2e818fa65b0042e4 |
|
MD5 | 1dd58e5131a589b5e908dad944db44aa |
|
BLAKE2b-256 | 5da6722ff20ef2a06b9ee552153d11ad07de69f5544083a96d95218c5a7561c8 |
Provenance
File details
Details for the file pyaxis-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyaxis-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92aa52dd1d32ade9385d0556216dc5a2ede83342e2f813e98a89ecf587d4a196 |
|
MD5 | 08860f03f7dcebe1b60e085a459b3cac |
|
BLAKE2b-256 | e467934fbdf7142e6ecf5ceddcb392b73d442af7c90c006b00d0d81cf6651bf0 |