(dataset_name)
return data
Fetch a dataset, returning an array of tuples.
Fetch a dataset, returning an array of tuples.
Fetch a dataset returning an array of tuples .
def load_dataset(dataset_name):
    """
    Fetch a dataset, returning an array of tuples.
    """
    url = METADATA[dataset_name]["url"]
    column_types = METADATA[dataset_name]["types"]
    f = urlopen(url)
    data = _read_rows(f, column_types)
    f.close()
    return data
def load_dataset ( dataset_name ) : url = METADATA [ dataset_name ] [ "url" ] column_types = METADATA [ dataset_name ] [ "types" ] f = urlopen ( url ) data = _read_rows ( f , column_types ) f . close ( ) return data