Skip to main content

A package to convert ARFF files to pandas DataFrames.

Project description

arffToDataFrame

PyPI version

Overview

arffToDataFrame is a Python package that provides a simple utility to convert ARFF (Attribute-Relation File Format) files to pandas DataFrames. This is particularly useful for data scientists and machine learning practitioners who work with ARFF files and prefer the flexibility and power of pandas for data manipulation and analysis.

Installation

You can install the package using pip:

pip install arffToDataFrame

Usage

The package provides a single function convertToDataFrame which takes the path to an ARFF file and returns a pandas DataFrame.

Example

import arffToDataFrame as atd

# Convert ARFF file to pandas DataFrame
df = atd.convertToDataFrame('path/to/your/file.arff', contains_attributes=True)

# Display the DataFrame
print(df)

Function Documentation

convertToDataFrame

Converts an ARFF file to a pandas DataFrame with the ARFF file attributes as the DataFrame column titles, unless specified otherwise.

Parameters:

  • filename (str): Path to the ARFF file.
  • contains_attributes (bool): Indicates whether the ARFF file contains attribute information. Default is True.

Returns:

  • pd.DataFrame: DataFrame containing the data from the ARFF file.

Project Link

GitHub: https://github.com/ammarhaider16/arff-to-dataframe

Author

@ammarhaider16

Project details


Release history Release notifications | RSS feed

This version

1.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arfftodataframe-1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

arffToDataFrame-1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file arfftodataframe-1.2.tar.gz.

File metadata

  • Download URL: arfftodataframe-1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for arfftodataframe-1.2.tar.gz
Algorithm Hash digest
SHA256 592efaaa144eb346e1f935ea84f815aa5a2a2cc2988be2354a92945aa628cc25
MD5 a804b1ecbb768380db82b4cab34d904e
BLAKE2b-256 92b7331b28db3f190753d6157a1fa4c72c8651851e4b4cb6111b162339d72b62

See more details on using hashes here.

File details

Details for the file arffToDataFrame-1.2-py3-none-any.whl.

File metadata

  • Download URL: arffToDataFrame-1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for arffToDataFrame-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f40b143bd61a1a2beec743628b3d42c6114b84cb6b5777be86d72f2a931596dc
MD5 4951a8c84f789a4280b0b08d4cc38618
BLAKE2b-256 b824695a7ff709122ad0674458fe45081c398f8e6adc01d70cdfd099133e8ce8

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