A Pandas df has a column called Target.
df
Target
This is my solution len(df[df[\'Target\'] == 1])/len(df) which works, but would like to kno
len(df[df[\'Target\'] == 1])/len(df)