A package to convert ARFF files to pandas DataFrames.
Project description
arffToDataFrame
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 isTrue.
Returns:
pd.DataFrame: DataFrame containing the data from the ARFF file.
Project Link
GitHub: https://github.com/ammarhaider16/arff-to-dataframe
Author
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
592efaaa144eb346e1f935ea84f815aa5a2a2cc2988be2354a92945aa628cc25
|
|
| MD5 |
a804b1ecbb768380db82b4cab34d904e
|
|
| BLAKE2b-256 |
92b7331b28db3f190753d6157a1fa4c72c8651851e4b4cb6111b162339d72b62
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f40b143bd61a1a2beec743628b3d42c6114b84cb6b5777be86d72f2a931596dc
|
|
| MD5 |
4951a8c84f789a4280b0b08d4cc38618
|
|
| BLAKE2b-256 |
b824695a7ff709122ad0674458fe45081c398f8e6adc01d70cdfd099133e8ce8
|