Skip to content

PC Axis PX file format reader for Python

License

BSD-2-Clause, MPL-2.0 licenses found

Licenses found

BSD-2-Clause
LICENSE
MPL-2.0
MPL_LICENSE
Notifications You must be signed in to change notification settings

jussiarpalahti/opendata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PC Axis PX file format reader for Python

WIP

Now requires Python 3, but has not been tested beyond PX file -> Pandas Dataframe conversion on Python 3.6 and Pandas 0.19.2. Python 2 is not supported at the moment (but works on commit 7669e5ccb5b8e0825d1044d5fe908b162904a523).

Usage

Requisite packages:

pip install pandas ipython jupyter

Use in Ipython shell:

import px_reader
px_obj = px_reader.Px('a_px_file_on_filesystem.px')
pandas_dataframe = px_obj.pd_dataframe()

Features

Notable feature is conversion to a Pandas DataFrame using MultiIndex, which supports multidimensional table object. Pandas calls this hierarchical indexing. Pandas has an extensive feature list. Thus you can use PC Axis files for data analysis, visualization and export to other data formats.

Installing scientific Python toolset can be a daunting task. One option is the Anaconda distribution. Otherwise Pandas installation may work with just pip install pandas. This code is unsupported, but please create an issue if you run into problems.

License

This repository is a fork from https://github.com/statfi/opendata

Below is its license which applies here also

All code here is under the BSD license unless otherwise stated. Otherwise Mozilla public license (MPL) is used since it supports both open and proprietary development alike.

About

PC Axis PX file format reader for Python

Resources

License

BSD-2-Clause, MPL-2.0 licenses found

Licenses found

BSD-2-Clause
LICENSE
MPL-2.0
MPL_LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%