I'm having difficult once I'm trying to group the sum of ['ForecastSUM'] values by ['PNO'] column .
combined_sf2['ForecastWHSE'] = combined_sf2.groupby(by=['ForecastSUM', 'PNO']).sum().groupby(level=
[0]).sum()
In this ['ForecastWHSE'], I would like to have the sum of ['ForecastSUM'] values grouped by PNO. For example, for the PNO = 8007205, I would like to have in this ['ForecastWHSE'] column the value of 13 (6+7).
I could create another dataframe which give me the rights values, but I was not able to include this right values on the full table on this 'ForecastWHSE'] specific column.
What should I do?