I dont understand the following behavior of a numpy array. Given the following array f:
array([u'1.8', u'1.8', u'2.4', u'2.2', u'2.0', u'2.1', u'2.8', u'3.2',
u'3.3', u'3.4', u'2.8'], dtype='<U32')
for a in f:
if a > 2.2:
print "greater"
else:
print "smaller"
The result is always greater.