Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Aug 19, 2024
1 parent 6a2fabb commit 3bfebc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ch02data/061internet.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
# **Supplementary materials**: The code used to replace each character is the [ASCII](http://www.asciitable.com) code for it.

# %% [markdown]
# **Supplementary materials**: The escaping rules are quite subtle. See [the Wikipedia article on percent-encoding](https://en.wikipedia.org/wiki/Percent-encoding).
# **Supplementary materials**: The escaping rules are quite subtle. See [the Wikipedia article on percent-encoding](https://en.wikipedia.org/wiki/Percent-encoding). The standard library provides the [urlencode](https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode) function that can take care of this for you.

# %% [markdown]
# ## Requests
Expand Down
2 changes: 1 addition & 1 deletion ch02data/066QuakeExercise.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# ---

# %% [markdown]
# # Extended exercise: the biggest earthquake in the UK this century
# # Classroom exercise: the biggest earthquake in the UK this century
#
# ## USGS earthquake catalog
#
Expand Down
2 changes: 1 addition & 1 deletion ch02data/082NumPy.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
my_array.append(4)

# %% [markdown]
# NumPy arrays do not provide an `append` method. For NumPy arrays it is generally expected that you will not change the *size* of an array once it has been defined and the way arrays are stored in memory would make such resize operations inefficient. Python lists on the other can be efficiently appended to, joined and split. However, you gain a lot of functionality in return for this limitation.
# For NumPy arrays it is generally expected that you will not change the *size* of an array once it has been defined and the way arrays are stored in memory would make such resize operations inefficient. Python lists on the other can be efficiently appended to, joined and split. However, you gain a lot of functionality in return for this limitation.
#
# ## Array creation routines
#
Expand Down

0 comments on commit 3bfebc5

Please sign in to comment.