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 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

:sunglasses: 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
# 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 ./[dsff-title] with data.csv, features.json and metadata.json

:star: Related Projects

You may also like these:

:clap: Supporters

Stargazers repo roster for @packing-box/python-dsff

Forkers repo roster for @packing-box/python-dsff

Back to top

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.0.2.tar.gz (25.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: dsff-1.0.2.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.8.10

File hashes

Hashes for dsff-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b7b7d2320a722a348db76e54a81ca3cccae445cd196615fde0879c923ffb22cc
MD5 fc4f90eea094b5c3f821c90d786838d7
BLAKE2b-256 f86590948cf6544fd75650c180baeda329ce99f6c8475074b9322905b9d86857

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