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

Currently the package is under development, so one can install it using the command:
pip install https://github.com/thdiaman/arffutils/tarball/master

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.0.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.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arffutils-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c8d6f2a34a29759ef0bf74b450dffd90b97e76578d6ef3eb8a83a8951f00a048
MD5 240973a442d2aca38161c8c717c96776
BLAKE2b-256 3040efb3255d11fd687418eb5b7fc48653639dabb1efb64947107fbb785307b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arffutils-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73ba3401cd13f9db70b4e2ce1f1017bd8dbf7ddb06241326e49fc574a077095e
MD5 9a3ab064e636fe2a6a850055c34b3b3e
BLAKE2b-256 405daf142b0e2dfc187bc3e2cd6035d41370066d52a03d5f8359bd9b64a9e4af

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