Answers for "sort based on column 2 np.array"

0

how to sort values in numpy by one column

sorted_array = an_array[numpy.argsort(an_array[:, 1])]
Posted by: Guest on January-04-2021

Code answers related to "sort based on column 2 np.array"

Python Answers by Framework

Browse Popular Code Answers by Language