I have a dataframe with string columns some of them are numbers in string and some others are just string. I want to convert the columns that are numbers in floats but not string. Someone sent me a link but it works only if you know the column and my dataframe is flexible.
>>> df_1
A B C
2 M01 test '100.0'
3 M02 test2 '80.0'
Convert a string that contains a price with space after thousands to float in pandas column