try_play_with_data
I add some comment in the code you can also check the commits
I'm not family with pandas, but I try to remove some code that seems unnecessary and still get the result
Parameter Average Std
0 NPN 5.654180 5.654180
1 PM 5.533644 5.533644
2 DM 8.835191 8.835191
3 NM 6.701425 6.701425
Happy coding, bobo!