I'm trying to handle a dataset containing only str, but the values of the str can be either real text or something like "1.0" and "3.54".
I want to convert all string to the best possible type, which means 1.0 should be converted to int, 3.54 should be converted to float and everything else should stay str.
What is the best way to do so?
"1.0"is clearly meant to represent a floating point number (even though one with an integer value) - why would you not want to convert it to float?