Given a dataset of test scores, write Pandas code to return cumulative bucketed scores of <50, <75, <90, <100.
def bucket_test_scores(df):
bins = [0, 50, 75, 90, 100]
labels=['<50','<75','<90' , '<100']
df['test score'] = pd.cut(df['test score'], bins,labels=labels)