I have a data science project where I scraped information about cars. I am trying to perform stats function to prove if the information is statistically relevant. Other parts of the project I was testing was features in car, which was relatively straight forward as the cars either had the feature or didn't. In other words, 0 or 1. But for the other parts of the project like expert ratings it goes between anything between 3.1 to 4.8, I am trying to split this into two groups so I can perform a T test on it.
Here is my code
KBB_df.Expert-Rating[KBB_df.Expert-Rating <= ('3.6')] = 0
KBB_df.Expert-Rating[KBB_df.Expert-Rating > ('3.6')] = 1
print(Expert-Rating)
Here is the error that I was given SyntaxError: can't assign to operator
What is the problem?