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 8701118

Browse files
author
craigsdennis
committed
Adds Array Manipulation reflection notes
1 parent 23bd785 commit 8701118

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
@@ -1374,6 +1374,19 @@
13741374
"practice.flags['OWNDATA'], not_copied.flags['OWNDATA']"
13751375
]
13761376
},
1377+
{
1378+
"cell_type": "markdown",
1379+
"metadata": {},
1380+
"source": [
1381+
"## Array Manipulation\n",
1382+
"* The documentation on [Array Manipulation](https://docs.scipy.org/doc/numpy/reference/routines.array-manipulation.html) is a good one to keep bookmarked.\n",
1383+
"* `ndarray.reshape` creates a view with a new shape\n",
1384+
" * You can use `-1` as a value to infer the missing dimension\n",
1385+
"* `ndarray.ravel` returns a single dimensional view of the array.\n",
1386+
"* `ndarray.flatten` can be used to make a single dimensional copy.\n",
1387+
"* `np.lookfor` is great for searching docstrings from within a notebook."
1388+
]
1389+
},
13771390
{
13781391
"cell_type": "code",
13791392
"execution_count": 80,

0 commit comments

Comments
(0)

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