def _convert_to_float_if_possible(s):
try:<EOL><INDENT>ret = float(s)<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>ret = s<EOL><DEDENT>return ret<EOL>
A small helper function to convert a string to a numeric value
if appropriate

:param s: the string to be converted
:type s: str