Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 093d639

Browse files
author
craigsdennis
committed
Adds boolean indexing reflection notes
1 parent a1b2733 commit 093d639

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎Introduction to NumPy.ipynb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,19 @@
847847
"study_minutes[1, 1] = 360"
848848
]
849849
},
850+
{
851+
"cell_type": "markdown",
852+
"metadata": {},
853+
"source": [
854+
"## Boolean Array Indexing\n",
855+
"* You can create a boolean array by using comparison operators on an array.\n",
856+
" * You can use boolean arrays for fancy indexing.\n",
857+
" * Boolean arrays can be compared by using bitwise operators (`&`, `|`)\n",
858+
" * Do not use the `and` keyword.\n",
859+
" * Remember to mind the order of operations when combining\n",
860+
"* Even though boolean indexing returns a new array, you can update an existing array using a boolean index."
861+
]
862+
},
850863
{
851864
"cell_type": "code",
852865
"execution_count": 44,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /