Is there a way in python (without numpy) to rank lists? for example:
array1 = [1934,1232,345453,123423423,23423423,23423421]
array = [4,2,7,1,1,2]
ranks = [2,1,3,0,0,1]
Gives me examples only with numpy.
I would primarily like to rank the data and then process the data based on ranks to see which dataelements in array1 contribute to 90% of the highest data in array.
Let me know if you want me to give an example.