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
.
Changelog
See the CHANGELOG file.
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
- Jaime - jaimecp89
- Lukáš - lmalina
- Josch - JoschD
- Felix - fsoubelet
- pyLHC/OMC-Team - Working Group - pyLHC
License
This project is licensed under the MIT License - see the LICENSE 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
Hashes for tfs_pandas-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81636bd3343e9fbd7ae3aa460debf6e9abf7278847f2e2ac4e66ff8ac2baa6e3 |
|
MD5 | 03bcb0f6fbd4b2eea6534ba646bd8c39 |
|
BLAKE2b-256 | 3f1807a5366c38feeb7bf8dc2f45c05779672202bf2c36b85ff03ad672aca874 |