How to convert all values of a pandas
dataframe to float
data type unless they are non-numerical strings (i.e., are combination of digits and non-digit characters). In other words, I want to convert object
type to float
type while leaving everything else untouched.
Asked
Active
Viewed 14 times
0

Rebel
- 472
- 8
- 25
-
Note that this is not a good idea, mixed types are not efficient. – mozway Jul 07 '23 at 04:33