Skip to content

Commit

Permalink
Merge pull request GokuMohandas#122 from invicems/master
Browse files Browse the repository at this point in the history
Fix style
  • Loading branch information
GokuMohandas authored Jan 14, 2019
2 parents 92255ec + 83ffdc2 commit eb4b235
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions notebooks/02_NumPy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
"x = np.array(6) # scalar\n",
"print (\"x: \", x)\n",
"# Number of dimensions\n",
"print(\"x ndim: \", x.ndim)\n",
"print (\"x ndim: \", x.ndim)\n",
"# Dimensions\n",
"print(\"x shape:\", x.shape)\n",
"print (\"x shape:\", x.shape)\n",
"# Size of elements\n",
"print(\"x size: \", x.size)\n",
"print (\"x size: \", x.size)\n",
"# Data type\n",
"print (\"x dtype: \", x.dtype)"
],
Expand Down Expand Up @@ -132,9 +132,9 @@
"# 1-D Array\n",
"x = np.array([1.3 , 2.2 , 1.7])\n",
"print (\"x: \", x)\n",
"print(\"x ndim: \", x.ndim)\n",
"print(\"x shape:\", x.shape)\n",
"print(\"x size: \", x.size)\n",
"print (\"x ndim: \", x.ndim)\n",
"print (\"x shape:\", x.shape)\n",
"print (\"x size: \", x.size)\n",
"print (\"x dtype: \", x.dtype) # notice the float datatype"
],
"execution_count": 4,
Expand Down Expand Up @@ -167,9 +167,9 @@
"# 3-D array (matrix)\n",
"x = np.array([[[1,2,3], [4,5,6], [7,8,9]]])\n",
"print (\"x:\\n\", x)\n",
"print(\"x ndim: \", x.ndim)\n",
"print(\"x shape:\", x.shape)\n",
"print(\"x size: \", x.size)\n",
"print (\"x ndim: \", x.ndim)\n",
"print (\"x shape:\", x.shape)\n",
"print (\"x size: \", x.size)\n",
"print (\"x dtype: \", x.dtype)"
],
"execution_count": 6,
Expand Down

0 comments on commit eb4b235

Please sign in to comment.