I am working on an object detection task and I used a dataset where the boxes dimensions were provided as strings so I converted it to float using the following command.
df['x'] = pd.to_numeric(df['x'])
df['y'] = pd.to_numeric(df['y'])
df['w'] = pd.to_numeric(df['w'])
df['h'] = pd.to_numeric(df['h'])

Then I got  the following error
Expected object of scalar type double but got scalar type float for argument 'other'

I understood the error but not able to correct it.
So I want to change the above rows to double.