class documentation

class Dataset:

View In Hierarchy

If you're looking for details about the specific dataset, look at the .description

This classis mostly meant to be instantiated by load(), not by you - it's the thinnest of wrapper classes so you probably wouldn't care to.

This class is provisional and likely to change. Right now it does little more than

  • put a description into a .description attribute
  • put data into .data attribute without even saying what that is though it's probably an interable giving individually useful things, and be able to tell you its len()gth ...also so that it's harder to accidentally dump gigabytes of text to your console.

This is not the part that does the interpretation. This just contains its results.

Method __init__ No summary
Method __str__ String representation that mentions the name and the number of items
Method export_files Try to export each item to a file, for people who want to continue working on data elsewhere.
Instance Variable data Undocumented
Instance Variable description Undocumented
Instance Variable name Undocumented
Instance Variable num_items Undocumented
def __init__(self, description, data, name=''):
Parameters
description:strA description that load() would lift from the underlying data.
dataA reference to the main data, that load() would load from the underlying data.
name:stra name that would be printed into str() representation. Usually set by load().
def __str__(self):

String representation that mentions the name and the number of items

def export_files(self, in_dir_path=None, to_zipfile_path=None):

Try to export each item to a file, for people who want to continue working on data elsewhere.

Mostly useful when the dataset actually _does_ store one file (bytes object) per item. For other underlying types we might do some conversion, e.g. dict becomes JSON. We estimate the file extension it should have.

data =

Undocumented

description =

Undocumented

name =

Undocumented

num_items =

Undocumented