Error while running my code

Hello!
I tried running my code but showed some error. How can I fix this errors:
Thanks
Wole

Screen Link: https://app.dataquest.io/m/201/guided-project%3A-star-wars-survey/5/cleaning-the-ranking-columns

My Code: <star_wars[star_wars.columns[9:15]] = star_wars[star_wars.columns[9:15]].astype(float)>

What I expected to happen:
I expect my code to convert columns to float

What actually happened:
ValueError: could not convert string to float: ‘Star Wars: Episode I The Phantom Menace’

Hi @wolewani:

If im not wrong this operation can be done in place (you don’t need the assignment operator), so just:

star_wars[star_wars.columns[9:15]].astype(float)