Skip to content

Bug: IsADirectoryError in "The weather dataset" section#2433

Open
HsienChing wants to merge 1 commit intotensorflow:masterfrom
HsienChing:patch-8
Open

Bug: IsADirectoryError in "The weather dataset" section#2433
HsienChing wants to merge 1 commit intotensorflow:masterfrom
HsienChing:patch-8

Conversation

@HsienChing
Copy link
Copy Markdown

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.

IsADirectoryError: [Errno 21] Is a directory: '/root/.keras/datasets/jena_climate_2009_2016_extracted'

Suggestion:
Modify the code from

csv_path, _ = os.path.splitext(zip_path)

to

csv_path = zip_path + "/jena_climate_2009_2016.csv"

And then, we could reach the file and read it.

Error condition screenshot:

image

Screendate: 2026-04-21
Link: Run in Google Colab

# 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.
@HsienChing HsienChing requested a review from a team as a code owner April 21, 2026 04:12
@github-actions
Copy link
Copy Markdown

Preview

Preview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.

Format and style

Use the TensorFlow docs notebook tools to format for consistent source diffs and lint for style:
$ python3 -m pip install -U --user git+https://github.com/tensorflow/docs

$ python3 -m tensorflow_docs.tools.nbfmt notebook.ipynb
$ python3 -m tensorflow_docs.tools.nblint --arg=repo:tensorflow/docs notebook.ipynb
If commits are added to the pull request, synchronize your local branch: git pull origin patch-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant