0

I have a df having sales of month

customer product   month     revenue
 sam       A      2021-11      221

 tim       A      2021-12      220

 mi.       B      2021-10     213

 harry     A      2011-11    210

 eric.     A.      2021-10    213

Need the output:

For Product A:   

 customer product   2021-10.   2021-11.  2021-12
     
 sam       A        0            221      0  

 tim       A        0             0      220

 harry     A        0            210      0
 
 erIc     A.      213            0       0 

the format of month is period(M).What would be best way to do in python.

tim83
  • 13
  • 4

0 Answers0