I have a data frame with name, type, and Turnover per game. A sample of that df is given below.
Name Type Turnover per game
kevin A 5
duke B 10
jonas A 12
angly A 2
anjelo B 10
wily A 4
nick A 8
What I want to do is implement a hypothesis test to check, Type A players have average less turnovers than Type B players..
What I tried :
Firstly, group by Type:
df.groupby('Type').mean()
But I don't know how to implement a hypothesis test to check the above condition.