rps = {'Played' : ['Rock', 'Scissors', 'Scissors', 'Rock', 'Scissors', 'Paper', 'Scissors', 'Paper', 'Scissors', 'Paper', 'Rock', 'Paper', 'Scissors', 'Paper', 'Paper', 'Rock', 'Paper', 'Rock', 'Paper', 'Rock', 'Rock', 'Scissors', 'Paper', 'Rock', 'Rock', 'Scissors', 'Paper', 'Rock', 'Rock', 'Scissors', 'Paper', 'Rock', 'Scissors', 'Paper'],
'Outcome' : ['Won', 'Lost', 'Lost', 'Won', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Lost', 'Won', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost', 'Won', 'Lost']}
import pandas as pd
rps = pd.DataFrame(rps)
## View the dataframe (run this to view the dataframe, and then click on script.py at top to come back here to add your code)
print(rps)
## Get frequency table of how often Rock, Paper, and Scissors were played
## Find the proportion that played Rock
## Get frequency table of how often Rock, Paper, and Scissors were played
rpscnts = rps['Played'].value_counts()
rpscnts
## Find the proportion that played Rock
num = rpscnts['Rock']
print('Numerator = ', num) # not needed
den = sum(rpscnts)
print('Denominator = ', den) # not needed
prop = num/den
print('Proportion = ', round(prop, 3))