I have a dataset includes all the countries, and multiple date columns which contains number of people being confirmed to have disease. like this
country 1/1 1/2 1/3 1/4 ....... 1/31
A 2 4 0 5 10
B 3 3 5 1 2
C 4 2 6 8 3
How can I convert it to be like this:
country date number of confirmed
A 1/1 2
A 1/2 4
A 1/3 0
A 1/4 5
..........................
C 1/31 3
Using R studio or Python. It's really hard to use Excel manually change this, but I don't know how to achieve this using python or R.