Skip to main content

Python library to convert from and to ARFF files

Project description

arffutils

Python library to convert from and to ARFF files

Installation

You can install the package using the command:
pip install arffutils

Running

The package contains four functions:

  • pandas_dataframe_to_arff: receives as input a pandas dataframe and writes it to disk as an ARFF file.
  • arff_to_pandas_dataframe: receives as input the path to an ARFF file and returns a pandas dataframe.
  • csv_to_arff: receives as input the path to a CSV file and writes an ARFF file.
  • arff_to_csv: receives as input the path to an ARFF file and writes a CSV file.

One can import any of the above functions and run it. For example, to convert an ARFF file to CSV, one can write:

from arffutils import arff_to_csv
arff_to_csv("example.arff", "example.csv")

Examples can be found in directory tests.

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

arffutils-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arffutils-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file arffutils-0.1.1.tar.gz.

File metadata

  • Download URL: arffutils-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for arffutils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 30971948c99095c9fc8c7edcf2758ff369d2bd163292af8f2dfc30192dad2dc5
MD5 ad4f894ed59a6dfb5e6aa0fc6ac0e802
BLAKE2b-256 94285f36765b02f8787b2b6355bdf854ec805235c7a566b91d29ca92051530df

See more details on using hashes here.

File details

Details for the file arffutils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: arffutils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for arffutils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 539a20aabf141a1eb9c58bc4b397491bcf6c530f8372679c757587aadb268d02
MD5 d477a0f237fc40d749a6e31030fa36b1
BLAKE2b-256 15545d3bd8653c9a7743818dd7c5c091f4ebd4147fe9982bef60afe19b2f9e44

See more details on using hashes here.

Supported by

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