Pandas - Conditional Probability of a given specific b

后端 未结 5 1110
孤独总比滥情好
孤独总比滥情好 2021-01-03 02:32

I have DataFrame with two columns of \"a\" and \"b\". How can I find the conditional probability of \"a\" given specific \"b\"?

df.groupby(\'a\').groupby(\         


        
5条回答
提交回复
热议问题