Skip to main content

Read and write tfs files.

Project description

TFS-Pandas

Cron Testing Code Climate coverage Code Climate maintainability (percentage) GitHub last commit GitHub release

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 multiple TfsDataFrame, for example via pandas.DataFrame.append() or pandas.concat(), will convert the TfsDataFrame back to a DataFrame and lose therefore the headers.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

tfs-pandas-2.0.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

tfs_pandas-2.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file tfs-pandas-2.0.1.tar.gz.

File metadata

  • Download URL: tfs-pandas-2.0.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for tfs-pandas-2.0.1.tar.gz
Algorithm Hash digest
SHA256 eda480107b7510f03381dbefa9de46a318ada26ba3121744300d01e4d6db0ec4
MD5 777dca14e55f7f1ab0e2cda6d48c0b86
BLAKE2b-256 3d31ad6624bbf964e87640889e32705f8deaeffd14c920dc77736b2885749f80

See more details on using hashes here.

File details

Details for the file tfs_pandas-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: tfs_pandas-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for tfs_pandas-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdab7ab2fce6d6ee2051043ae0c7126286004bd840fe0af03411732d91887b4c
MD5 f1c90ce8450eb897636be89c2ccc6dca
BLAKE2b-256 9c710c15b866bedcf9f12d303a7829c5f055a7bcbc1164cfa6e4ae6f937cf73b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page