|
1989 | 1989 | "# print(arr[1:2, :])"
|
1990 | 1990 | ]
|
1991 | 1991 | },
|
| 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 | + }, |
1992 | 2010 | {
|
1993 | 2011 | "cell_type": "markdown",
|
1994 | 2012 | "metadata": {},
|
|
3855 | 3873 | "# Code"
|
3856 | 3874 | ]
|
3857 | 3875 | },
|
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 | | - }, |
3876 | 3876 | {
|
3877 | 3877 | "cell_type": "markdown",
|
3878 | 3878 | "metadata": {},
|
|
4598 | 4598 | "source": [
|
4599 | 4599 | "### **argsort(), argmin() and argmax()**\n",
|
4600 | 4600 | "\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" |
4602 | 4606 | ]
|
4603 | 4607 | },
|
4604 | 4608 | {
|
|
0 commit comments