Skip to content

Shani-Sinojiya/arff-format-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARFF Format Converter

PyPI - Version PyPI - License PyPI - Downloads GitHub Sponsors GitHub pull requests GitHub last commit GitHub issues GitHub forks GitHub Repo stars

The arff-format-converter tool allows you to convert ARFF files to various output formats. Below are the details:

Table of Contents

Install

pip install arff-format-converter

Synopsis

arff-format-converter -f <file> -o <output_folder> -fmt <output_format> [--fast]

Examples

arff-format-converter -f data.arff -o output -fmt json
arff-format-converter -f data.arff -o output -fmt xml
arff-format-converter -f data.arff -o output -fmt csv
arff-format-converter -f data.arff -o output -fmt xlsx
arff-format-converter -f data.arff -o output -fmt orc
arff-format-converter -f data.arff -o output -fmt parquet
arff-format-converter -f data.arff -o output -fmt json --fast

Options

  • -f, --file Path to the ARFF file.
  • -o, --output Path to the output folder.
  • -fmt, --format Output format: xml, json, csv, xlsx, orc, parquet.
  • --fast Enable fast mode. Performs the conversion.

Supported Formats

  • ARFF (input)
  • XML (output)
  • JSON (output)
  • CSV (output)
  • XLSX (output)
  • ORC (Apache ORC format) (output)
  • Parquet (output)

Author

Written by Shani Sinojiya.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request, or check the issues section for tasks that need help.

Features

  • Convert .arff files into multiple formats: XML, JSON, CSV, XLSX, ORC, and now Parquet.
  • CLI-based, easy-to-use interface.
  • Handles large datasets efficiently.
  • Supports automated error handling and detailed logs.
  • Fast mode: Skip validation checks for quicker conversions.

License

This project is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International Public License.