Skip to main content

Read and write tfs files.

Project description

TFS-Pandas

Travis (.com) 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.

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.md 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-1.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

tfs_pandas-1.0.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tfs-pandas-1.0.1.tar.gz
  • Upload date:
  • Size: 9.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

Hashes for tfs-pandas-1.0.1.tar.gz
Algorithm Hash digest
SHA256 13d517cdc00f6461d63868dc6a34d9eab2ff3fe31149a72e27e4a3888ab7ec15
MD5 37ae9b95ceb18b431fb6e64120d18f92
BLAKE2b-256 fdb94d91ec98f787a8ef3168c6e0cd0eb75c5f5ee1eaa32f12c300854ea1d34f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tfs_pandas-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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

Hashes for tfs_pandas-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05e007abe3c0f8e4db0c3eb17e81bf2be20da7eed4566fc699e457122b936d4f
MD5 7aa156fccea590a77b73db5de77ecac2
BLAKE2b-256 eeedb0b00f136240790173f1fa5d2f90db1274c0e2c812511b133ebbfa3622fd

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