I have pandas dataframe, which looks like below.
chainage(km)  
0  
0.001  
0.002  
0.003  
0.004
while I use .loc to search for the chainage(km) it returns the empty dataframe for some chainages.
print data.loc[data['chainage(km)'] == float(0.004)]  
-- Empty dataframe
print data.loc[data['chainage(km)'] == float(0.001)]  
-- returns value
Any help would be much appreciated.
 
     
     
    