Skip to content
Open
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
12 changes: 6 additions & 6 deletions 01_materials/slides/10_numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "cea5f938",
"metadata": {
"id": "cea5f938"
Expand Down Expand Up @@ -179,7 +179,7 @@
"id": "19868422"
},
"source": [
"We can create arrays with placeholder content in several ways. This is useful when we know how many elements will be in an array, but not their values, as `numpy` arrays have fixed size. The full list is in [`numpy`'s documentation](https://numpy.org/devdocs/user/basics.creation.html#arrays-creation)."
"We can create arrays with placeholder content in several ways. This is useful when we know how many elements will be in an array, but not their values, as `numpy` arrays have fixed size. You can find other methods for array creation in [`numpy`'s documentation](https://numpy.org/devdocs/user/basics.creation.html#arrays-creation)."
]
},
{
Expand Down Expand Up @@ -239,7 +239,7 @@
},
"outputs": [],
"source": [
"# create a 1D array from 1 until 10 in steps of 2\n",
"# create a 1D array from 1 to 10 in steps of 2\n",
"np.arange(1, 10, 2)"
]
},
Expand Down Expand Up @@ -1231,7 +1231,7 @@
"id": "bae12ead"
},
"source": [
"To filter use a Boolean expression as a mask, pass it into square brackets after the array to mask."
"To filter an array, we pass the mask (e.g., `tens % 3 == 0`) as the array index:"
]
},
{
Expand Down Expand Up @@ -1546,7 +1546,7 @@
"provenance": []
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "python-env",
"language": "python",
"name": "python3"
},
Expand All @@ -1560,7 +1560,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.11.14"
},
"rise": {
"scroll": true,
Expand Down