Skip to main content

DataSet File Format Tweet

Store a dataset in XSLX-like format.

PyPi Read The Docs Build Status Coverage Status Python Versions Known Vulnerabilities License

This library contains code for handling the DataSet File Format (DSFF) based on the XSLX format and for converting it to ARFF (for use with the Weka framework), CSV or a FilelessDataset structure (from the Packing Box).

pip install --user dsff

Usage

Creating a DSFF from a FilelessDataset

>>> import dsff
>>> with dsff.DSFF() as f:
    f.write("/path/to/my-dataset")  # folder of a FilelessDataset (containing data.csv, features.json and metadata.json)
    f.to_arff()                     # creates ./my-dataset.arff
    f.to_csv()                      # creates ./my-dataset.csv
    f.to_db()                       # creates ./my-dataset.db (SQLite DB)
# while leaving the context, ./my-dataset.dsff is created

Creating a FilelessDataset from a DSFF

>>> import dsff
>>> with dsff.DSFF("/path/to/my-dataset.dsff") as f:
    f.to_dataset()  # creates ./my-dataset with data.csv, features.json and metadata.json

**

Extensions

Install all available extensions

pip install --user dsff[all]

Dealing with Apache Arrow formats

pip install --user dsff[arrow]
>>> import dsff
>>> with dsff.DSFF("/path/to/my-dataset.dsff") as f:
    f.to_feather()  # creates ./my-dataset.feather
    f.to_orc()      # creates ./my-dataset.orc
    f.to_parquet()  # creates ./my-dataset.parquet

Related Projects

You may also like these:

Metadata

Release files for dsff 1.2.3

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

Source distribution (sdist)

Source distribution for dsff 1.2.3
File Size Uploaded
dsff-1.2.3.tar.gz 185.0 kB Details

Built distribution (wheel)

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

Total release size: 226.5 kB

Release files / dsff-1.2.3.tar.gz

Download URL dsff-1.2.3.tar.gz
Size 185.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d01d661c6ca2f2b872b7d52541e5eb4db19e5713713af61a98386b36244bc64b
BLAKE2b-256 checksum
How to use checksums
c1fb0496c11afa9c3e247e493cf695f9948ad188832cc4d686d14aa77f98f727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / dsff-1.2.3-py3-none-any.whl

Download URL dsff-1.2.3-py3-none-any.whl
Size 41.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7146ba89c4ecc2ef7d00dd827693235063e69be22577c93a22407f8de216569
BLAKE2b-256 checksum
How to use checksums
b868f7a5a8ba0d3a8c8d284f7aac2ac76a756bec8654f1794b6c7f90539958a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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