I can't say how much I am grateful to you after this video. Thanks a lot, bro! 😊 Please cover other important libraries like pandas,matplotlib,scikit-learn,scipy etc. After this I would request you to deep dive into statistics part pls, else the knowledge gained through data science would be incomplete. Looking forward to your upcoming videos 👍.☺️
44:42 --> 'argsort()' may be used to find the index of all the elements of a sorted array of any dimension. for a 2d array, we have to specify the axis whose elements we want to sort
44:56 Function: myar.argsort(axis = 1) Display: array ([[0, 1, 2], [0, 1, 2], [2, 1, 0]], dtype=int64) Functionality: it will display the indexes of the values from the original array and sort the values
44:54 We want an argsort of axis 1, so as we all know that axis one goes from left to right hence when the first whole column will be an axis of when axis 1 is concerned, hence if we try to sort it we will come to know that all the elements are already sorted, so it will yield and answer as [0,1,2].
45:13 arg.sort() it works by default rows wise and if we give it axis =0 . then it work vertically every column and if we give axis = 0 then it work horizantally
Argsort arranges the indices of elements in increasing order of element value. Depending on the axis, it works like...for axis 0 it sorts every column individually and for axis 1 it sorts the rows individually.
44:58 in axis = 0 it tells us where the required elements are w.r.t vertical axis for them to be sorted in ascending order vertically In axis = 1 it is considered horizontally
There are 6 general mechanisms for creating arrays: -Conversion from other Python structures (i.e. lists and tuples) -Intrinsic NumPy array creation functions (e.g. arange, ones, zeros, etc.) -Replicating, joining, or mutating existing arrays -Reading arrays from disk, either from standard or custom formats -Creating arrays from raw bytes through the use of strings or buffers -Use of special library functions (e.g., random)
Hey, thank you, Harry, I am started following your videos from the last 3-4 months What a content you created for free of cost you deserve a big Applause 👏 👏
Brother you're great. You're helping many who can't learn these concept easily. I watched your both videos on numpy and pandas, again thanks a ton. Harry 😊
Argsort(axis=0)..this provide the sorted position of the value of axis 0...like if axis 0 has some numbers like 4,2,7..then argsort will provide the following position 1,0,2..
Hi Harry, Your videos are too good and easy to understand. Thanks for uploading the videos. I have one query. How can we download/extract the output data from Jupyter Notebook?
44:42 -> what argsort() does is it returns the indices of the array's elements in the ascending order depending upon the axis that has been assigned to it.
Argsort is used to arrange elements from ascending to descending order in 2D array and when axis = 0 , it is according to vertical direction and when axis = 1,it is according to horizontal direction.
ar.argsort(axis=1) it is showing the indices of the horizontal elements (row elements) according to which if we would have arranged the elements we would have got a sorted array.
ar.argsort(axis=1) will return a matrix of same order with sorter indices on axis one. This will tell us the indices of min to max element of the row for example; [ [4,5,6], [8,22,1], [100,23,1] ] will result in [[0,1,2], [1,2,0], [2,1,0]]
Hi, your vedio's are leaner friendly, but if you could prounce numerical numbers in English,then its more convenient for Non-hindi students,great going!
here axis =0 means move along the columns and now elements gets sorted according to indexes along columns and corresponding to maximum value in column 1 index will come firsst.
44: 56 argsort -> return the index of element that should be for having the items in ascending order. suppose argsort(axis=1) , now it will see the index of items in the axis 1 i.e row ( because axis 0 is column and axis 1 is column ) so that we will get the elements of row in ascending order
07:03 Numpy gives efficient storage and ready-made functions for data analysis. 14:06 Using Jupyter Notebook and Numpy 21:09 Learned about creating numpy arrays using python objects 28:12 Creating numpy arrays from Python structures and using intrinsic numpy array creation objects 35:15 Numpy array creation methods and reshaping 42:18 Understanding numpy arrays and axis 49:21 Using arg sort and axis to sort 2D arrays 56:18 NumPy arrays take less space compared to Python arrays.
thank you harry bhai mene aapke python ke pure 123 video dheke and numpy bhi appne bahut achi and simple tareke se sikayeye hai. your way of teaching, so laveable :)
When you did sum(axis=0) it is adding the value vertically, but in graphic design you said that axis 0 is for rows and axis 1 for columns. Little confusion.
In data analysis sometimes ram ka issues aata hai toh ek video buffering par bi bana do coz RU-vid par koi accha tutorial nai hai uspe practical usage ke saath
Sir sahi sequence bta doo codeing sikhny k liye like may , python,flask, pandas, django & php sikhna chahta hu..to kya chiz kab kru vo bta do...??? Sir ya ispy video bna doo
agar empty array create karke baadme usme indexing se change hi karna hai, tho koi bhi random array banake bhi tho kar sakte hai,kyu ye empty ka syntax seekhe?
Harry bhai in mathematics single row matrix ka tranpose single coloumn hota hai lekin hya nhi hora exaple :arr = np.array[2,4,5,6,] arr.T iska result same arrra hai please reply
Multiplication in matrix is done as row to column Not row to row I don't know how at 47:30 around you multiplyed 2 matrix as row*row That's a wrong answer shown by jupyter notebook
Actually matrix addition and subtraction is same as array addition and Subtraction. But the mulplication is not same. Similarly matrix division is not defined but array division is quite possible and simple. It is just like array multiplication (element wise division)
harry bai numpy array k baray ma koi vedio banao is vedio ma kafi kuch miss kia ao na jasay one dimention array kia hoti 2 dimention etc ya koi playlist banao plzzzz
Quiz Answer: axis =0 means we are talking about column output of ar.argsort(asix=0) is array([[0, 2, 2], [1, 0, 0], [2, 1, 1]]) for column first sorting be like 1
Hi I am Abhay I am learning to make game with unity but I don't know how to code C# please make full course video Because no one can teach C# better than you please help Harry brother 🙏