Skip to main content

DataSet File Format (DSFF)

Project description

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:

Project details


Download files

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

Source Distribution

dsff-1.2.3.tar.gz (185.0 kB view details)

Uploaded Source

Built Distribution

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

dsff-1.2.3-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file dsff-1.2.3.tar.gz.

File metadata

  • Download URL: dsff-1.2.3.tar.gz
  • Upload date:
  • Size: 185.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dsff-1.2.3.tar.gz
Algorithm Hash digest
SHA256 d01d661c6ca2f2b872b7d52541e5eb4db19e5713713af61a98386b36244bc64b
MD5 abadd64ab77bf864259df0e834611110
BLAKE2b-256 c1fb0496c11afa9c3e247e493cf695f9948ad188832cc4d686d14aa77f98f727

See more details on using hashes here.

File details

Details for the file dsff-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: dsff-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dsff-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b7146ba89c4ecc2ef7d00dd827693235063e69be22577c93a22407f8de216569
MD5 048a1136ca073f082f690371b2839f3e
BLAKE2b-256 b868f7a5a8ba0d3a8c8d284f7aac2ac76a756bec8654f1794b6c7f90539958a6

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