Skip to main content

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.

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

Author

@ammarhaider16

Metadata

Release files for arffToDataFrame 1.2

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

Source distribution (sdist)

Source distribution for arffToDataFrame 1.2
File Size Uploaded
arfftodataframe-1.2.tar.gz 2.4 kB Details

Built distribution (wheel)

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

Total release size: 5.3 kB

Release files / arfftodataframe-1.2.tar.gz

Download URL arfftodataframe-1.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
592efaaa144eb346e1f935ea84f815aa5a2a2cc2988be2354a92945aa628cc25
BLAKE2b-256 checksum
How to use checksums
92b7331b28db3f190753d6157a1fa4c72c8651851e4b4cb6111b162339d72b62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / arffToDataFrame-1.2-py3-none-any.whl

Download URL arffToDataFrame-1.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f40b143bd61a1a2beec743628b3d42c6114b84cb6b5777be86d72f2a931596dc
BLAKE2b-256 checksum
How to use checksums
b824695a7ff709122ad0674458fe45081c398f8e6adc01d70cdfd099133e8ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.2 This release

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