diff --git a/01_materials/slides/10_numpy.ipynb b/01_materials/slides/10_numpy.ipynb index ebd0e056..07b0da98 100644 --- a/01_materials/slides/10_numpy.ipynb +++ b/01_materials/slides/10_numpy.ipynb @@ -94,7 +94,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "cea5f938", "metadata": { "id": "cea5f938" @@ -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)." ] }, { @@ -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)" ] }, @@ -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:" ] }, { @@ -1546,7 +1546,7 @@ "provenance": [] }, "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "python-env", "language": "python", "name": "python3" }, @@ -1560,7 +1560,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.14" }, "rise": { "scroll": true,