I am stuck on step 7. I have been successful in creating the loop to get the text for all ratings within the table, but I cannot find any way to exclude the first element (the title of the column, “Rating”) from my ratings list. I have tried a remove command, tried excluding the element via “float(s([1:])”, and other wild ideas. I can create a list full of text strings, but need to convert all numerical strings into float for the next steps of the project.
My current code for step 7 is:
for a in rating_links:
s = a.get_text()
s.remove(‘Ratings’) #this line will not remove the string
ratings.append(float(s)) #Cannot convert to float due to “Rating” string, with or without remove command
Any help you can provide would be appreciated.