Skip to main content

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.

Metadata

Release files for arffutils 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arffutils 0.1.1
File Size Uploaded
arffutils-0.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arffutils 0.1.1
File Interpreter ABI Platform
arffutils-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / arffutils-0.1.1.tar.gz

Download URL arffutils-0.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
30971948c99095c9fc8c7edcf2758ff369d2bd163292af8f2dfc30192dad2dc5
BLAKE2b-256 checksum
How to use checksums
94285f36765b02f8787b2b6355bdf854ec805235c7a566b91d29ca92051530df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.8

Release files / arffutils-0.1.1-py3-none-any.whl

Download URL arffutils-0.1.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
539a20aabf141a1eb9c58bc4b397491bcf6c530f8372679c757587aadb268d02
BLAKE2b-256 checksum
How to use checksums
15545d3bd8653c9a7743818dd7c5c091f4ebd4147fe9982bef60afe19b2f9e44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page