Skip to content

Commit efaf147

Browse files
authored
Merge pull request jakevdp#1 from jakevdp/master
Update Commits
2 parents 475499f + de0cc6b commit efaf147

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

notebooks/02.06-Boolean-Arrays-and-Masks.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@
650650
}
651651
],
652652
"source": [
653-
"# are all values in each row less than 4?\n",
653+
"# are all values in each row less than 8?\n",
654654
"np.all(x < 8, axis=1)"
655655
]
656656
},

notebooks/02.07-Fancy-Indexing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@
709709
"cell_type": "markdown",
710710
"metadata": {},
711711
"source": [
712-
"You might expect that ``x[3]`` would contain the value 2, and ``x[3]`` would contain the value 3, as this is how many times each index is repeated. Why is this not the case?\n",
712+
"You might expect that ``x[3]`` would contain the value 2, and ``x[4]`` would contain the value 3, as this is how many times each index is repeated. Why is this not the case?\n",
713713
"Conceptually, this is because ``x[i] += 1`` is meant as a shorthand of ``x[i] = x[i] + 1``. ``x[i] + 1`` is evaluated, and then the result is assigned to the indices in x.\n",
714714
"With this in mind, it is not the augmentation that happens multiple times, but the assignment, which leads to the rather nonintuitive results.\n",
715715
"\n",

0 commit comments

Comments
 (0)