A library to read and write AGS4 files using Pandas DataFrames
Project description
python-ags4
A library to read and write AGS4 files using Pandas DataFrames
Installation
pip install python-ags4
Introduction
'python-ags4' is a library of functions that let allows a user import AGS4 files to a collection of Pandas DataFrames.
Examples
Import module:
from python_ags4 import AGS4
Import data file:
tables, headings = AGS4.AGS4_to_dataframe('/home/asitha/Projects/python-AGS4/tests/test_data.ags')
- tables is a dictionary of Pandas DataFrames. Each DataFrame contains the data from a GROUP in the AGS4 file.
- headings is a dictionary of lists. Each list has the header names of the corresponding GROUP
All data are imported as text so they cannot be analyzed or plotted immediately. You can use the following code to convert all the numerical data in a DataFrame from text to numeric.
LOCA = AGS4.convert_to_numeric(tables['LOCA'])
The AGS4.convert_to_numeric()
function automatically converts all columns in the input DataFrame with the a numeric TYPE to a float.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-AGS4-0.1.1.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for python_AGS4-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9254fc6251c4d8127f030069e1ddab0593c2c72d0ee67cab41921b5bdf4dd3 |
|
MD5 | 3e44362bc7c2a2f2616adae18c6c02fa |
|
BLAKE2b-256 | 0f6c96202aabc3ce1f02959294f11702271cb91b23b6fc03fdf32af21da5c100 |