Help on Sampling Mission 9/14

Hi folks, did someone reproduce the 3 sampling graphs on exercise 9/14?
I have gotten the graph of the simple random sampling, but all my tries on to reproduce the 2 stratified sampling graphs have failed.
Could you share with me your solution please?

Mine (9/14) doesn’t perfectly match the image but it is very similar. I think they just changed the sampling to low: 2 , mid: 2, and high: 2 for the answer to 8/14.

print(wnba[‘MIN’].value_counts(bins = 3, normalize = True))

means =
for i in range(100):
low = wnba[wnba[‘MIN’] <= 347.333]
mid = wnba[(wnba[‘MIN’] > 347.333) & (wnba[‘MIN’] <= 682.667)]
high = wnba[wnba[‘MIN’] > 682.667]
low_stratum = low.sample(4, random_state=i)
mid_stratum = mid.sample(4, random_state=i)
high_stratum = high.sample(4, random_state=i)

stratum = pd.concat([low_stratum, mid_stratum, high_stratum])
means.append(stratum['PTS'].mean())

plt.scatter(range(1,101), means)
plt.xlim([-5, 105])
plt.ylim([80, 350])
plt.axhline(wnba[‘PTS’].mean())