0

I am trying to convert the data type for TotalCharges to float but it is throwing me error

churn['TotalCharges']=churn['TotalCharges'].astype(float)

I am trying to convert the data type for TotalCharges to float but it is throwing me the error

ValueError: could not convert string to float:' '

0 Answers0