Answers for "sort np list of string"

0

sort np list of string

arr = ['01','05','08','06','10','02','04']
sorted_arr = np.sort(arr)
print(sorted_arr)
>> array(['01', '02', '04', '05', '06', '08', '10'])
Posted by: Guest on October-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language