Below is a sample of my dataframe.
A R K S
130 Robe 41 35 snail
131 Slippers 44 42 hamster
132 Coat 47 49 mouse
133 Robe 50 56 goldfish
134 Slippers 53 63 bird
... ... ... ... ...
1166 Slippers 3149 7287 bird
1167 Coat 3152 7294 iguana
1168 Robe 3155 7301 snail
1169 Slippers 3158 7308 hamster
1170 Coat 3161 7315 mouse
How can I find the std of column R where column S is 'hamster' or column A is 'Coat'?
I have tried dfe.groupby(['A', 'S']).sum().R.std()
, but the output is incorrect.