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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8d6f2a34a29759ef0bf74b450dffd90b97e76578d6ef3eb8a83a8951f00a048
|
|
| MD5 |
240973a442d2aca38161c8c717c96776
|
|
| BLAKE2b-256 |
3040efb3255d11fd687418eb5b7fc48653639dabb1efb64947107fbb785307b6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ba3401cd13f9db70b4e2ce1f1017bd8dbf7ddb06241326e49fc574a077095e
|
|
| MD5 |
9a3ab064e636fe2a6a850055c34b3b3e
|
|
| BLAKE2b-256 |
405daf142b0e2dfc187bc3e2cd6035d41370066d52a03d5f8359bd9b64a9e4af
|