File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,19 @@ class Dataset:
5151 Example:
5252
5353 >>> from tempfile import TemporaryDirectory
54+ >>> import pprint
5455 >>> import pydax
5556 >>> dataset_schemata = pydax.schema.DatasetSchemaCollection('./tests/schemata/datasets.yaml')
5657 >>> 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'}}}
5767 >>> jfk_data_dir = TemporaryDirectory()
5868 >>> jfk_dataset = Dataset(schema=jfk_schema_dict, data_dir=jfk_data_dir.name)
5969 >>> jfk_dataset.download()
You can’t perform that action at this time.
0 commit comments