Read and write tfs files.
Project description
TFS-Pandas
This package provides reading and writing functionality for table format system (tfs) files.
Getting Started
Prerequisites
The package depends heavily on pandas
and also on numpy
, so these packages need
to be installed in your python environment.
Installing
Installation is easily done via pip
. The package is then used as tfs
.
pip install tfs-pandas
Example:
import tfs
data_frame = tfs.read('path_to_input.tfs', index="index_column")
tfs.write('path_to_output.tfs', data_frame, save_index="index_column")
Description
Reading and writing capabilities for tfs-files
are provided by this package. The files are read into special pandas
Dataframes
, called TfsDataFrames
,
which in addition to the normal behaviour attach an OrderedDict
of headers to the DataFrame
.
Known Issues
- Creating a new
DataFrame
by combining multipleTfsDataFrame
, for example viapandas.DataFrame.append()
orpandas.concat()
, will convert theTfsDataFrame
back to aDataFrame
and lose therefore the headers.
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details
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
Built Distribution
File details
Details for the file tfs-pandas-1.0.3.tar.gz
.
File metadata
- Download URL: tfs-pandas-1.0.3.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ddaf79603607dd7010a15e13a7d1730d59f04d0dd75796a23648827002b5aa |
|
MD5 | 4c4659ef0b3462f8d7f4278e3e5c146b |
|
BLAKE2b-256 | 0e16cfc130798fa0f5fd42c61a67da75b2c433d8ae9c3b26490ca38ba5184b63 |
File details
Details for the file tfs_pandas-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: tfs_pandas-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aecf22ab918756c4625f99976dc873d94944bd951e20aecc5a5be1dc9e505e0 |
|
MD5 | 032adf4a78567fa085afe0afab87d265 |
|
BLAKE2b-256 | 921a39f80090314f3a2d2322948e1d480c96a3c95d03ebcb9390f146c1a4ae9d |