I have tried to classify numbers in python from 0.0 to 1.0. However, all numbers are getting the else condition. I need each number to get the appropriate condition, but even when the number is 0.3 or 0.2 is getting the last bin. What I am doing wrong?
#!/usr/bin/python

import csv
import sys
import re

bin1=0;
bin2=0;
bin3=0;
bin4=0;
bin5=0;
bin6=0;
bin7=0;
bin8=0;
bin9=0;
bin10=0;


def Read():
with open (file_name) as csvfile:
readCSV = csv.reader (csvfile, delimiter=',')
for row in readCSV:
for num in range(1,2):
print row[num]
#Include in 10 bins
if 0.0