Skip to content

Commit 4575d9f

Browse files
committed
Fix markdown linter issues
1 parent 2fc09b1 commit 4575d9f

21 files changed

+2568
-2488
lines changed

codes/01_array-basics.ipynb

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** AmirhosseinHeydari78@gmail.com - 📍 **Linktree:** [linktr.ee/mr_pylin](https://linktr.ee/mr_pylin)\n",
7+
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** <amirhosseinheydari78@gmail.com> - 📍 **Origin:** [mr-pylin/numpy-workshop](https://github.com/mr-pylin/numpy-workshop)\n",
88
"\n",
9-
"---"
9+
"---\n"
1010
]
1111
},
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
1515
"source": [
16-
"# Dependencies"
16+
"# Dependencies\n"
1717
]
1818
},
1919
{
@@ -30,21 +30,23 @@
3030
"metadata": {},
3131
"source": [
3232
"# NumPy Basics\n",
33-
" - **NumPy** is a powerful library for numerical computing in Python, optimized for high-performance array operations.\n",
34-
" - **Arrays** in NumPy provide efficient storage and are the primary data structure, supporting fast mathematical computations over large datasets.\n",
33+
"\n",
34+
"- **NumPy** is a powerful library for numerical computing in Python, optimized for high-performance array operations.\n",
35+
"- **Arrays** in NumPy provide efficient storage and are the primary data structure, supporting fast mathematical computations over large datasets.\n",
3536
"\n",
3637
"📝 **Docs**:\n",
37-
" - NumPy Overview: [numpy.org/doc/stable/user/quickstart.html](https://numpy.org/doc/stable/user/quickstart.html)\n",
38-
" - Array creation routines: [numpy.org/doc/stable/reference/routines.array-creation.html](https://numpy.org/doc/stable/reference/routines.array-creation.html)\n",
39-
" - `numpy.array`: [numpy.org/doc/stable/reference/generated/numpy.array.html#numpy.array](https://numpy.org/doc/stable/reference/generated/numpy.array.html)\n",
40-
" - Data type objects (`dtype`): [numpy.org/doc/stable/reference/arrays.dtypes.html](https://numpy.org/doc/stable/reference/arrays.dtypes.html)"
38+
"\n",
39+
"- NumPy Overview: [numpy.org/doc/stable/user/quickstart.html](https://numpy.org/doc/stable/user/quickstart.html)\n",
40+
"- Array creation routines: [numpy.org/doc/stable/reference/routines.array-creation.html](https://numpy.org/doc/stable/reference/routines.array-creation.html)\n",
41+
"- `numpy.array`: [numpy.org/doc/stable/reference/generated/numpy.array.html#numpy.array](https://numpy.org/doc/stable/reference/generated/numpy.array.html)\n",
42+
"- Data type objects (`dtype`): [numpy.org/doc/stable/reference/arrays.dtypes.html](https://numpy.org/doc/stable/reference/arrays.dtypes.html)\n"
4143
]
4244
},
4345
{
4446
"cell_type": "markdown",
4547
"metadata": {},
4648
"source": [
47-
"## 0D array (Known as scalar)"
49+
"## 0D array (Known as scalar)\n"
4850
]
4951
},
5052
{
@@ -107,7 +109,7 @@
107109
"cell_type": "markdown",
108110
"metadata": {},
109111
"source": [
110-
"## 1D array (Known as vector)"
112+
"## 1D array (Known as vector)\n"
111113
]
112114
},
113115
{
@@ -171,7 +173,7 @@
171173
"cell_type": "markdown",
172174
"metadata": {},
173175
"source": [
174-
"## 2D array (known as matrix)"
176+
"## 2D array (known as matrix)\n"
175177
]
176178
},
177179
{
@@ -243,7 +245,7 @@
243245
"cell_type": "markdown",
244246
"metadata": {},
245247
"source": [
246-
"## 3D array"
248+
"## 3D array\n"
247249
]
248250
},
249251
{
@@ -335,7 +337,7 @@
335337
"cell_type": "markdown",
336338
"metadata": {},
337339
"source": [
338-
"## 4D array"
340+
"## 4D array\n"
339341
]
340342
},
341343
{

codes/02_arithmetic-operations.ipynb

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** AmirhosseinHeydari78@gmail.com - 📍 **Linktree:** [linktr.ee/mr_pylin](https://linktr.ee/mr_pylin)\n",
7+
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** <amirhosseinheydari78@gmail.com> - 📍 **Origin:** [mr-pylin/numpy-workshop](https://github.com/mr-pylin/numpy-workshop)\n",
88
"\n",
9-
"---"
9+
"---\n"
1010
]
1111
},
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
1515
"source": [
16-
"# Dependencies"
16+
"# Dependencies\n"
1717
]
1818
},
1919
{
@@ -30,23 +30,25 @@
3030
"metadata": {},
3131
"source": [
3232
"# NumPy - Arithmetic Operations\n",
33-
" - **Scalar and Array Operations**:\n",
34-
" - Demonstrates adding, subtracting, multiplying, dividing, and performing other arithmetic operations between a NumPy array and a scalar.\n",
35-
" - **Array-to-Array Operations**:\n",
36-
" - Explores <u>element-wise</u> arithmetic operations between arrays of compatible shapes.\n",
37-
" - **Broadcasting**:\n",
38-
" - Explains how smaller arrays can be “broadcasted” to perform operations with larger arrays by aligning shapes.\n",
33+
"\n",
34+
"- **Scalar and Array Operations**:\n",
35+
" - Demonstrates adding, subtracting, multiplying, dividing, and performing other arithmetic operations between a NumPy array and a scalar.\n",
36+
"- **Array-to-Array Operations**:\n",
37+
" - Explores <u>element-wise</u> arithmetic operations between arrays of compatible shapes.\n",
38+
"- **Broadcasting**:\n",
39+
" - Explains how smaller arrays can be “broadcasted” to perform operations with larger arrays by aligning shapes.\n",
3940
"\n",
4041
"📝 Docs:\n",
41-
" - Arithmetic operations: [numpy.org/doc/stable/reference/routines.math.html#arithmetic-operations](https://numpy.org/doc/stable/reference/routines.math.html#arithmetic-operations)\n",
42-
" - Broadcasting: [numpy.org/doc/stable/user/basics.broadcasting.html](https://numpy.org/doc/stable/user/basics.broadcasting.html)"
42+
"\n",
43+
"- Arithmetic operations: [numpy.org/doc/stable/reference/routines.math.html#arithmetic-operations](https://numpy.org/doc/stable/reference/routines.math.html#arithmetic-operations)\n",
44+
"- Broadcasting: [numpy.org/doc/stable/user/basics.broadcasting.html](https://numpy.org/doc/stable/user/basics.broadcasting.html)\n"
4345
]
4446
},
4547
{
4648
"cell_type": "markdown",
4749
"metadata": {},
4850
"source": [
49-
"## Array & Scalar"
51+
"## Array & Scalar\n"
5052
]
5153
},
5254
{
@@ -144,7 +146,7 @@
144146
"cell_type": "markdown",
145147
"metadata": {},
146148
"source": [
147-
"## Array & Array"
149+
"## Array & Array\n"
148150
]
149151
},
150152
{
@@ -245,8 +247,9 @@
245247
"metadata": {},
246248
"source": [
247249
"## Broadcasting\n",
248-
" - It allows arrays of different shapes to be used together in different operations.\n",
249-
" - The **smaller** array is “broadcasted” across the **larger** array so that they have compatible shapes."
250+
"\n",
251+
"- It allows arrays of different shapes to be used together in different operations.\n",
252+
"- The **smaller** array is “broadcasted” across the **larger** array so that they have compatible shapes.\n"
250253
]
251254
},
252255
{

codes/03_comparative-operations.ipynb

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** AmirhosseinHeydari78@gmail.com - 📍 **Linktree:** [linktr.ee/mr_pylin](https://linktr.ee/mr_pylin)\n",
7+
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** <amirhosseinheydari78@gmail.com> - 📍 **Origin:** [mr-pylin/numpy-workshop](https://github.com/mr-pylin/numpy-workshop)\n",
88
"\n",
9-
"---"
9+
"---\n"
1010
]
1111
},
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
1515
"source": [
16-
"# Dependencies"
16+
"# Dependencies\n"
1717
]
1818
},
1919
{
@@ -30,23 +30,25 @@
3030
"metadata": {},
3131
"source": [
3232
"# NumPy - Comparative Operations\n",
33-
" - **Scalar and Array Operations**:\n",
34-
" - Compares arrays with scalar values using operators like `==`, `!=`, `<`, `>`, `<=`, and `>=`..\n",
35-
" - **Array-to-Array Operations**:\n",
36-
" - Conducts <u>element-wise</u> comparisons between arrays of compatible shapes.\n",
37-
" - **Broadcasting**:\n",
38-
" - Explains how smaller arrays can be “broadcasted” to perform operations with larger arrays by aligning shapes.\n",
33+
"\n",
34+
"- **Scalar and Array Operations**:\n",
35+
" - Compares arrays with scalar values using operators like `==`, `!=`, `<`, `>`, `<=`, and `>=`..\n",
36+
"- **Array-to-Array Operations**:\n",
37+
" - Conducts <u>element-wise</u> comparisons between arrays of compatible shapes.\n",
38+
"- **Broadcasting**:\n",
39+
" - Explains how smaller arrays can be “broadcasted” to perform operations with larger arrays by aligning shapes.\n",
3940
"\n",
4041
"📝 Docs:\n",
41-
" - Comparison operations: [numpy.org/doc/stable/reference/routines.logic.html#comparison](https://numpy.org/doc/stable/reference/routines.logic.html#comparison)\n",
42-
" - Broadcasting: [numpy.org/doc/stable/user/basics.broadcasting.html](https://numpy.org/doc/stable/user/basics.broadcasting.html)"
42+
"\n",
43+
"- Comparison operations: [numpy.org/doc/stable/reference/routines.logic.html#comparison](https://numpy.org/doc/stable/reference/routines.logic.html#comparison)\n",
44+
"- Broadcasting: [numpy.org/doc/stable/user/basics.broadcasting.html](https://numpy.org/doc/stable/user/basics.broadcasting.html)\n"
4345
]
4446
},
4547
{
4648
"cell_type": "markdown",
4749
"metadata": {},
4850
"source": [
49-
"## Array & Scalar"
51+
"## Array & Scalar\n"
5052
]
5153
},
5254
{
@@ -137,7 +139,7 @@
137139
"cell_type": "markdown",
138140
"metadata": {},
139141
"source": [
140-
"## Array & Array"
142+
"## Array & Array\n"
141143
]
142144
},
143145
{
@@ -231,8 +233,9 @@
231233
"metadata": {},
232234
"source": [
233235
"## Broadcasting\n",
234-
" - It allows arrays of different shapes to be used together in different operations.\n",
235-
" - The **smaller** array is “broadcasted” across the **larger** array so that they have compatible shapes."
236+
"\n",
237+
"- It allows arrays of different shapes to be used together in different operations.\n",
238+
"- The **smaller** array is “broadcasted” across the **larger** array so that they have compatible shapes.\n"
236239
]
237240
},
238241
{

codes/04_index-&-slice.ipynb

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** AmirhosseinHeydari78@gmail.com - 📍 **Linktree:** [linktr.ee/mr_pylin](https://linktr.ee/mr_pylin)\n",
7+
"📝 **Author:** Amirhossein Heydari - 📧 **Email:** <amirhosseinheydari78@gmail.com> - 📍 **Origin:** [mr-pylin/numpy-workshop](https://github.com/mr-pylin/numpy-workshop)\n",
88
"\n",
9-
"---"
9+
"---\n"
1010
]
1111
},
1212
{
1313
"cell_type": "markdown",
1414
"metadata": {},
1515
"source": [
16-
"# Dependencies"
16+
"# Dependencies\n"
1717
]
1818
},
1919
{
@@ -30,13 +30,15 @@
3030
"metadata": {},
3131
"source": [
3232
"# NumPy - Index\n",
33-
" - Accesses individual elements or subsets within an array by specifying positions.\n",
34-
" - Uses square brackets, e.g., `array[0]` for the first element.\n",
35-
" - Supports advanced indexing like boolean and fancy indexing (using arrays as indices).\n",
33+
"\n",
34+
"- Accesses individual elements or subsets within an array by specifying positions.\n",
35+
"- Uses square brackets, e.g., `array[0]` for the first element.\n",
36+
"- Supports advanced indexing like boolean and fancy indexing (using arrays as indices).\n",
3637
"\n",
3738
"📝 Docs:\n",
38-
" - Indexing on `ndarrays`: [numpy.org/doc/stable/user/basics.indexing.html](https://numpy.org/doc/stable/user/basics.indexing.html)\n",
39-
" - Indexing routines: [numpy.org/doc/stable/reference/routines.indexing.html](https://numpy.org/doc/stable/reference/routines.indexing.html)"
39+
"\n",
40+
"- Indexing on `ndarrays`: [numpy.org/doc/stable/user/basics.indexing.html](https://numpy.org/doc/stable/user/basics.indexing.html)\n",
41+
"- Indexing routines: [numpy.org/doc/stable/reference/routines.indexing.html](https://numpy.org/doc/stable/reference/routines.indexing.html)\n"
4042
]
4143
},
4244
{
@@ -178,7 +180,7 @@
178180
"cell_type": "markdown",
179181
"metadata": {},
180182
"source": [
181-
"## Update values by index"
183+
"## Update values by index\n"
182184
]
183185
},
184186
{
@@ -242,16 +244,18 @@
242244
"metadata": {},
243245
"source": [
244246
"# NumPy - Slice\n",
245-
" - Extracts portions of an array by specifying a range of indices.\n",
246-
" - Uses the format `array[start:stop:step]`, where:\n",
247-
" - `start`: starting index (inclusive),\n",
248-
" - `stop`: ending index (exclusive),\n",
249-
" - `step`: interval between indices.\n",
250-
" - Creates views instead of copies, meaning changes affect the original array.\n",
247+
"\n",
248+
"- Extracts portions of an array by specifying a range of indices.\n",
249+
"- Uses the format `array[start:stop:step]`, where:\n",
250+
" - `start`: starting index (inclusive),\n",
251+
" - `stop`: ending index (exclusive),\n",
252+
" - `step`: interval between indices.\n",
253+
"- Creates views instead of copies, meaning changes affect the original array.\n",
251254
"\n",
252255
"📝 Docs:\n",
253-
" - Indexing on `ndarrays`: [numpy.org/doc/stable/user/basics.indexing.html](https://numpy.org/doc/stable/user/basics.indexing.html)\n",
254-
" - Indexing routines: [numpy.org/doc/stable/reference/routines.indexing.html](https://numpy.org/doc/stable/reference/routines.indexing.html)"
256+
"\n",
257+
"- Indexing on `ndarrays`: [numpy.org/doc/stable/user/basics.indexing.html](https://numpy.org/doc/stable/user/basics.indexing.html)\n",
258+
"- Indexing routines: [numpy.org/doc/stable/reference/routines.indexing.html](https://numpy.org/doc/stable/reference/routines.indexing.html)\n"
255259
]
256260
},
257261
{
@@ -442,7 +446,7 @@
442446
"cell_type": "markdown",
443447
"metadata": {},
444448
"source": [
445-
"## Update values by slice"
449+
"## Update values by slice\n"
446450
]
447451
},
448452
{
@@ -503,7 +507,7 @@
503507
"cell_type": "markdown",
504508
"metadata": {},
505509
"source": [
506-
"# NumPy - Mask & Filter"
510+
"# NumPy - Mask & Filter\n"
507511
]
508512
},
509513
{
@@ -571,15 +575,16 @@
571575
"# NumPy - Advanced index & Slice\n",
572576
"\n",
573577
"📝 Docs:\n",
574-
" - Indexing on `ndarrays`: [numpy.org/doc/stable/user/basics.indexing.html](https://numpy.org/doc/stable/user/basics.indexing.html)\n",
575-
" - Indexing routines: [numpy.org/doc/stable/reference/routines.indexing.html](https://numpy.org/doc/stable/reference/routines.indexing.html)"
578+
"\n",
579+
"- Indexing on `ndarrays`: [numpy.org/doc/stable/user/basics.indexing.html](https://numpy.org/doc/stable/user/basics.indexing.html)\n",
580+
"- Indexing routines: [numpy.org/doc/stable/reference/routines.indexing.html](https://numpy.org/doc/stable/reference/routines.indexing.html)\n"
576581
]
577582
},
578583
{
579584
"cell_type": "markdown",
580585
"metadata": {},
581586
"source": [
582-
"## Integer array indexing"
587+
"## Integer array indexing\n"
583588
]
584589
},
585590
{
@@ -662,7 +667,7 @@
662667
"cell_type": "markdown",
663668
"metadata": {},
664669
"source": [
665-
"## Boolean array indexing"
670+
"## Boolean array indexing\n"
666671
]
667672
},
668673
{

0 commit comments

Comments
 (0)