Example below, getting total math values corresponding to the same values of period_str key.
[
     {math: 40, period_str: "Period 1, 03 2019"},
     {math: 32, period_str: "Period 1, 03 2019"},
     {math: 44, period_str: "Period 1, 02 2020"},
]
Expected output
[
{math: 72, period_str: "Period 1, 03 2020"}
{math: 44, period_str: "Period 1, 02 2020"}
]
Or output (object only)
{math: 72, period_str: "Period 1, 03 2020"}
{math: 44, period_str: "Period 1, 02 2020"}
 
     
    