Skip to content

Commit

Permalink
Update working_with_text.md
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor-phil committed Nov 5, 2024
1 parent c7a4a32 commit d80c2a0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lectures/applications/working_with_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,12 @@ def get_season(year, region):
```

```{code-cell} python
forecastlist = [
forecast
for year in range(2011, 2019)
for region in [region["id"] for region in forecastregions["features"]]
for forecast in (get_season(year, region) or [])
if forecast is not None
]
forecastlist=[]
for year in range(2011,2019):
print("working on {}".format(year))
for region in [region["id"] for region in forecastregions["features"]]:
forecastlist = forecastlist + get_season(year, region)
```

```{code-cell} python
Expand Down

0 comments on commit d80c2a0

Please sign in to comment.