File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,19 @@ class Dataset:
51
51
Example:
52
52
53
53
>>> from tempfile import TemporaryDirectory
54
+ >>> import pprint
54
55
>>> import pydax
55
56
>>> dataset_schemata = pydax.schema.DatasetSchemaCollection('./tests/schemata/datasets.yaml')
56
57
>>> jfk_schema_dict = dataset_schemata.export_schema('datasets', 'noaa_jfk', '1.1.4')
58
+ >>> pprint.pprint(jfk_schema_dict)
59
+ {'description': ...
60
+ 'download_url': '...noaa-weather-data-jfk-airport.tar.gz',
61
+ ...
62
+ 'subdatasets': {'jfk_weather_cleaned': {...
63
+ 'format': {'id': 'table/csv',
64
+ ...}},
65
+ ...
66
+ 'path': 'noaa-weather-data-jfk-airport/jfk_weather_cleaned.csv'}}}
57
67
>>> jfk_data_dir = TemporaryDirectory()
58
68
>>> jfk_dataset = Dataset(schema=jfk_schema_dict, data_dir=jfk_data_dir.name)
59
69
>>> jfk_dataset.download()
You can’t perform that action at this time.
0 commit comments