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 88a06a9

Browse files
Update numpy_basic_to_advance.ipynb
1 parent b9b2a04 commit 88a06a9

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

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

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,24 @@
19891989
"# print(arr[1:2, :])"
19901990
]
19911991
},
1992+
{
1993+
"cell_type": "markdown",
1994+
"metadata": {},
1995+
"source": [
1996+
"**Exercise: Write a program to filter the values from the array based on below mentioned conditions: \n",
1997+
"Either value should be divisible by 5. \n",
1998+
"(or) value should be an odd number and factor of 7.**"
1999+
]
2000+
},
2001+
{
2002+
"cell_type": "code",
2003+
"execution_count": 1,
2004+
"metadata": {},
2005+
"outputs": [],
2006+
"source": [
2007+
"# Code"
2008+
]
2009+
},
19922010
{
19932011
"cell_type": "markdown",
19942012
"metadata": {},
@@ -3855,24 +3873,6 @@
38553873
"# Code"
38563874
]
38573875
},
3858-
{
3859-
"cell_type": "markdown",
3860-
"metadata": {},
3861-
"source": [
3862-
"**Exercise: Write a program to filter the values from the array based on below mentioned conditions: \n",
3863-
"Either value should be divisible by 5. \n",
3864-
"(or) value should be an odd number and factor of 7.**"
3865-
]
3866-
},
3867-
{
3868-
"cell_type": "code",
3869-
"execution_count": 113,
3870-
"metadata": {},
3871-
"outputs": [],
3872-
"source": [
3873-
"# Code"
3874-
]
3875-
},
38763876
{
38773877
"cell_type": "markdown",
38783878
"metadata": {},
@@ -4598,7 +4598,11 @@
45984598
"source": [
45994599
"### **argsort(), argmin() and argmax()**\n",
46004600
"\n",
4601-
"In NumPy, functions like argsort(), argmin(), and argmax() are used to get the indices of elements rather than their values. These functions are extremely useful when you need to locate specific elements in an array."
4601+
"In NumPy, functions like argsort(), argmin(), and argmax() are used to get the indices of elements rather than their values. These functions are extremely useful when you need to locate specific elements in an array.\n",
4602+
"\n",
4603+
"- np.argsort() - Returns Indices of Sorted Elements\n",
4604+
"- np.argmin() - Returns Index of Minimum Element\n",
4605+
"- np.argmax() - Returns Index of Maximum Element"
46024606
]
46034607
},
46044608
{

0 commit comments

Comments
(0)

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