I have a huge list >1m entries in it.
and my bin size [0,1,2,3.....1000]
So, for 0 bin size all >1m entries pass and so on...
I need a fast solution, I tried coding it but it is quite slow.
Any help is appreciated. Thanks.
Input-
input_list = [0,0,0,1,2,3,55,34,......] (almost 1m in Len)
bins = [0,1,2,....., 1000]
Output-
{0:1.00, 1:0.99, 2:998........1000:0.02}
where key is bin,
value is ratio of values greater than or equal to particular bin to total entries in list.