Question 1
How can you sort the rows of a 2D numpy array in descending order based on the sum of each row?
Question 2
What is the difference between np.sort() and arr.sort()?
Question 3
What does the np.argsort() function return?
Question 4
What is the time complexity of numpy's sorting algorithm for a 1D array?
Question 5
What is the default sorting order in numpy's sort function?
Question 6
How can you sort the elements of a 2D numpy array based on the values in the second column?
Question 7
How can you sort the columns of a 2D numpy array in descending order?
Question 8
Which numpy function can be used to sort the elements of an ndarray along a specific axis?
Question 9
Which parameter of the np.sort() function allows you to specify a sorting algorithm?
Question 10
How can you sort the elements of a 1D numpy array in ascending order?