Here is my dilemma:
I got a dictionary of dataframes like this:
dict_df[key]
m1 m2 m3 m4 m5 m6
10410 5 10 21 33 11
15387 3 10 33 45 13
19026 4 16 27 40 11
26083 5 21 16 29 9
27806 4 17 23 31 7
43820 2 12 27 40 18
49199 7 22 30 38 11
50094 4 9 13 18 4
Per each key, it returns a DF with the same column names.
For each key, I need to store the mean and standard deviation of a set of features (let's take for example m2, m3, m4).
In the end, I want to obtain something like this df below (the numbers are totally random):
key m2_mean m2_std m3_mean m3_std m4_mean m4_std
key1 12 55 793 438 44 95
key2 14 442 21 43 14 442
key3 44 1 66 11 42 42
key4 42 42 2 23 98 70
The dataset is not that big, so even if the code is slow should be fine.
Thanks for the help and have a good one!