Why my groupby work says "invalid syntax" : <p><a href="https://i.stack.imgur.com/IsAy6.png" rel="nofollow noreferrer">groupby</a></p>

<p>Hello, i try to find the mean of a data of groupby a dataframe. However, it shows my work has invalid syntax and please somebody help me.</p>
