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 477bccc

Browse files
author
craigsdennis
committed
Adds Slicing reflection notes
1 parent a2ef4ec commit 477bccc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎Introduction to NumPy.ipynb‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,17 @@
10151015
"study_minutes[2]"
10161016
]
10171017
},
1018+
{
1019+
"cell_type": "markdown",
1020+
"metadata": {},
1021+
"source": [
1022+
"## Slicing\n",
1023+
"* Works a lot like normal list slicing.\n",
1024+
"* You can use commas to separate each dimension slice.\n",
1025+
"* Always returns a data view **not a copy**\n",
1026+
"* You can access the base object using the `ndarray.base` property"
1027+
]
1028+
},
10181029
{
10191030
"cell_type": "code",
10201031
"execution_count": 55,

0 commit comments

Comments
(0)

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