Skip to content

Commit a305d7e

Browse files
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

File tree

site/en/tutorials/structured_data/time_series.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
" origin='https://storage.googleapis.com/tensorflow/tf-keras-datasets/jena_climate_2009_2016.csv.zip',\n",
139139
" fname='jena_climate_2009_2016.csv.zip',\n",
140140
" extract=True)\n",
141-
"csv_path, _ = os.path.splitext(zip_path)"
141+
"csv_path = zip_path + \"/jena_climate_2009_2016.csv\""
142142
]
143143
},
144144
{

0 commit comments

Comments
 (0)