In [4]:
import pandas as pd

numRolls = []
probabilities = []
for i in range(50):
    numRolls.append(i)
    probabilities.append(1-(5/6)**i)

rolls = {
    "NumRolls": numRolls,
    "Prob at least 6": probabilities
}
In [5]:
df = pd.DataFrame(rolls)
df.plot.scatter(x="NumRolls", y="Prob at least 6")
Out[5]:
<matplotlib.axes._subplots.AxesSubplot at 0x17a2119d5c8>
In [ ]: