I have a df which looks like below. There are 4 political parties and they send emails to voters and note if they are opened by the voters.
ID Party Emails_Sent Emails_Opened
A21 2 3 1
A24 4 1 0
A21 1 5 0
A21 3 1 1
A27 3 2 1
A27 2 1 0
Not all parties send emails to all voters(ID). But, I want to include all the parties in the party column and assign'0' as Emails and Opened when they not reached a voter like below.
ID Party Emails_Sent Emails_Opened
A21 1 5 0
A21 2 3 1
A21 3 1 1
A21 4 0 0
A24 1 0 0
A24 2 0 0
A24 3 0 0
A24 4 1 0
A27 1 0 0
A27 2 1 0
A27 3 2 1
A27 4 0 0
I'm not sure how to approach this, any help is appreciated.