Skip to content

Commit 84e1ec9

Browse files
committed
Update numpy_basic_to_advance.ipynb
1 parent 88a06a9 commit 84e1ec9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Module 2 - Python for Data Analysis/02. High Speed Computations with NumPy/numpy_basic_to_advance.ipynb

+12-7
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,12 @@
17521752
"We can combine multiple conditions using:\n",
17531753
"- & is used instead of and\n",
17541754
"- | is used instead of or\n",
1755-
"- ~ is used for negation"
1755+
"- ~ is used for negation\n",
1756+
"\n",
1757+
"**Important Note:** \n",
1758+
"- There can be a confusion using \"&\" vs \"and\", and \"|\" vs \"or\".\n",
1759+
"- If you try using Logical operators, i.e. \"or\" or \"and\", directly on a NumPy array, you'll get an error because they don't work element-wise on NumPy arrays.\n",
1760+
"- \"|\" and \"&\" are bitwise operators that work element-wise on arrays."
17561761
]
17571762
},
17581763
{
@@ -2180,9 +2185,9 @@
21802185
"```\n",
21812186
"\n",
21822187
"**Note:** \n",
2183-
" - axis=None for flattened array\n",
2184-
" - axis=0 Affects Columns\n",
2185-
" - axis=1 Affects Rows"
2188+
"- axis=None for flattened array\n",
2189+
"- axis=0 Affects Columns\n",
2190+
"- axis=1 Affects Rows"
21862191
]
21872192
},
21882193
{
@@ -2447,9 +2452,9 @@
24472452
"```\n",
24482453
"\n",
24492454
"**Note:** \n",
2450-
" - axis=None for flattened array\n",
2451-
" - axis=0 Affects Columns\n",
2452-
" - axis=1 Affects Rows"
2455+
"- axis=None for flattened array\n",
2456+
"- axis=0 Affects Columns\n",
2457+
"- axis=1 Affects Rows"
24532458
]
24542459
},
24552460
{

0 commit comments

Comments
 (0)