Commit a305d7e
authored
Bug: IsADirectoryError in "The weather dataset" section
# Bug: `IsADirectoryError` in "The weather dataset" section
**Position:**
"The weather dataset" section
**Link:**
https://www.tensorflow.org/tutorials/structured_data/time_series#the_weather_dataset
**Condition:**
A `IsADirectoryError` is encountered, indicating the program couldn't reach and read the file.
```python
IsADirectoryError: [Errno 21] Is a directory: '/root/.keras/datasets/jena_climate_2009_2016_extracted'
```
**Suggestion:**
Modify the code from
```python
csv_path, _ = os.path.splitext(zip_path)
```
to
```python
csv_path = zip_path + "/jena_climate_2009_2016.csv"
```
And then, we could reach the file and read it.1 parent 7c36502 commit a305d7e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments