I have a dataframe in each columns I have numbers but the type is object! how I can convert object to float?
I tried this :
pd.to_numeric(df['Close_x'],errors='coerce')
but the error says:
TypeError: arg must be a list, tuple, 1-d array, or Series
I tried concatenated['Close_x'].astype(float)
the error says:
ValueError: could not convert string to float: '1,001.96'