Skip to content

[numpy] fix deprecation issue from numpy and link checker issues #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dask-worker-space

.vscode/
.ipynb_checkpoints/
.virtual_documents/

lectures/mathfoo.py
lectures/mod.py
Expand Down
3 changes: 2 additions & 1 deletion lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ sphinx:
'https://keras.io/',
'https://data.oecd.org/',
'https://www.reddit.com/',
'https://openai.com']
'https://openai.com',
'https://chatgpt.com/']
html_favicon: _static/lectures-favicon.ico
html_theme: quantecon_book_theme
html_static_path: ['_static']
Expand Down
13 changes: 12 additions & 1 deletion lectures/numpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ row, column = a.shape
result = np.empty((3, 3))
for i in range(row):
for j in range(column):
result[i, j] = a[i, j] + b[i]
result[i, j] = a[i, j] + b[i,0]

result
```
Expand Down Expand Up @@ -1474,6 +1474,17 @@ print(A)

**Part2**: Move on to replicate the result of the following broadcasting operation. Meanwhile, compare the speeds of broadcasting and the `for` loop you implement.

For this part of the exercise you can use the `tic`/`toc` functions from the `quantecon` library to time the execution.

Let's make sure this library is installed.

```{code-cell} python3
:tags: [hide-output]
!pip install quantecon
```

Now we can import the quantecon package.

```{code-cell} python3
import quantecon as qe

Expand Down
7 changes: 1 addition & 6 deletions lectures/pandas.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,7 @@ An important database for economists is [FRED](https://research.stlouisfed.org/f

For example, suppose that we are interested in the [unemployment rate](https://research.stlouisfed.org/fred2/series/UNRATE).

Via FRED, the entire series for the US civilian unemployment rate can be downloaded directly by entering
this URL into your browser (note that this requires an internet connection)

(To download the data as a csv, click here: [https://research.stlouisfed.org/fred2/series/UNRATE/downloaddata/UNRATE.csv](https://fred.stlouisfed.org/graph/fredgraph.csv?bgcolor=%23e1e9f0&chart_type=line&drp=0&fo=open%20sans&graph_bgcolor=%23ffffff&height=450&mode=fred&recession_bars=on&txtcolor=%23444444&ts=12&tts=12&width=1320&nt=0&thu=0&trc=0&show_legend=yes&show_axis_titles=yes&show_tooltip=yes&id=UNRATE&scale=left&cosd=1948-01-01&coed=2024-10-01&line_color=%234572a7&link_values=false&line_style=solid&mark_type=none&mw=3&lw=3&ost=-99999&oet=99999&mma=0&fml=a&fq=Monthly&fam=avg&fgst=lin&fgsnd=2020-02-01&line_index=1&transformation=lin&vintage_date=2024-11-03&revision_date=2024-11-03&nd=1948-01-01))

This request returns a CSV file, which will be handled by your default application for this class of files.
(To download the data as a csv, click on the top right `Download` and select the `CSV (data)` option).

Alternatively, we can access the CSV file from within a Python program.

Expand Down
Loading