Skip to content

Commit 6d1ee5f

Browse files
authored
Show jfk_schema_dict in the Dataset example (#261)
1 parent 278d751 commit 6d1ee5f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pydax/_dataset.py

+10
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)