liac-arff is a Python library for reading and writing ARFF (Attribute-Relation File Format) files, commonly used in WEKA machine learning toolkits. Current version 2.5.0 is the last to support Python 2. It supports sparse ARFF, data generators, and standard Java escape sequences. Release cadence is irregular, with about 1-2 releases per year.
pip install liac-arffVerified import paths — ran on the pinned version, not inferred.
Load an ARFF file and access its attributes and data.
Use `with open('file.arff') as f: data = arff.load(f)`Iterate over the generator first or use `list(data['data'])` to consume it, then access `data['attributes']`.
Upgrade to Python 3.5+ or pin liac-arff to <=2.4.0.
Use `import arff` then `data = arff.load(...)`
Ensure you pass the file object to `arff.load()`, not the path. If a path is needed, open it first: `with open(path) as f: arff.load(f)`
No dependency data recorded yet.