I have a datset with Scores and Categories and I would like to calculate the Standard Deviation of these scores, per category. The data look something like this:
Category Score AAAA 1 AAAA 3 AAAA 1 BBBB 1 BBBB 100 BBBB 159 CCCC -10 CCCC 9
What I would then like is the Standard Deviation of each Category. I know that with numpy I can use the following:
But the example I can find only have this relating to a list and not a range of different categories in a DataFame.