We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f5910 commit 86d04c5Copy full SHA for 86d04c5
03-temperature/bwi.h5 renamed to 03-temperature/data/bwi.h5
03-temperature/central_park.h5 renamed to 03-temperature/data/central_park.h5
03-temperature/ornl.h5 renamed to 03-temperature/data/ornl.h5
03-temperature/w_helpers.py
@@ -141,13 +141,13 @@ def load_data(dataset):
141
DataFrame
142
Hourly temperature data
143
"""
144
- p = Path(os.path.dirname(os.path.realpath(__file__)))
+ p = Path(os.path.dirname(os.path.realpath(__file__))) / 'data'
145
fname = p / f'{dataset}.h5'
146
147
try:
148
return pd.read_hdf(str(fname))
149
except FileNotFoundError:
150
sources = {f.stem for f in p.iterdir() if
151
f.is_file() and f.name.endswith('h5')}
152
- raise RuntimeError(f"Could not not find {dataset:!r}. Existing "
+ raise RuntimeError(f"Could not not find {dataset!r}. Existing "
153
f"datasets are {sources}")
0 commit comments