It seems such a strange conclusion.
(clean_df
.groupby(['smokes'])
.agg(prob=('alive', np.mean)))
Or can you figure out what went wrong here?
smoking: smoking is good
It seems such a strange conclusion.
(clean_df
.groupby(['smokes'])
.agg(prob=('alive', np.mean)))
Or can you figure out what went wrong here?