|
1752 | 1752 | "We can combine multiple conditions using:\n", |
1753 | 1753 | "- & is used instead of and\n", |
1754 | 1754 | "- | 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." |
1756 | 1761 | ] |
1757 | 1762 | }, |
1758 | 1763 | { |
|
2180 | 2185 | "```\n", |
2181 | 2186 | "\n", |
2182 | 2187 | "**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" |
2186 | 2191 | ] |
2187 | 2192 | }, |
2188 | 2193 | { |
|
2447 | 2452 | "```\n", |
2448 | 2453 | "\n", |
2449 | 2454 | "**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" |
2453 | 2458 | ] |
2454 | 2459 | }, |
2455 | 2460 | { |
|
0 commit comments