I got an error in my code while converting string to character.
This is my dataframe image:

This how I remove the unit in the data:

and then while converting with:
for i in ['Power']:
data[i] = data[i].astype(float)
I got the following error message:
