I have a yearly information (COUNT) of countries stored in DataFrame. However, some countries are missing in certain years.
If I have a complete list of countries, what is an optimal way to add them under corresponding years and fill the missing value for COUNT with 0?
DATE COUNTRY COUNTRY_ID COUNT
0 1980 United States 840 42
42 1980 Czech Republic 203 2
95 1980 Hungary 348 1
96 1980 Great Britain 826 1
97 1980 South Africa 710 1
98 1982 United States 840 42
140 1982 Paraguay 600 2
.
.