in this sampling problem of WNBA players why wnba is used after the equal sign can somebody please help me with this ??
under_12 = wnba[wnba[‘Games Played’] <= 12]
btw_13_22 = wnba[(wnba[‘Games Played’] > 12) & (wnba[‘Games Played’] <= 22)]
over_23 = wnba[wnba[‘Games Played’] > 22]
proportional_sampling_means =
for i in range(100):
sample_under_12 = under_12[‘PTS’].sample(1, random_state = i)
sample_btw_13_22 = btw_13_22[‘PTS’].sample(2, random_state = i)
sample_over_23 = over_23[‘PTS’].sample(7, random_state = i)
final_sample = pd.concat([sample_under_12, sample_btw_13_22, sample_over_23])
proportional_sampling_means.append(final_sample.mean())
plt.scatter(range(1,101), proportional_sampling_means)
plt.axhline(wnba[‘PTS’].mean())