how to check whether a string is float or not in python code example
Example 1: python is integer
(1.23).is_integer() # Returns false
Example 2: check if a string is float python
try:
float(element)
except ValueError:
print "Not a float"