I have the data in the below dataframe as:-
id name value year quarter
1 an 2.3 2012 1
2 yu 3.5 2012 2
3 ij 3.1 2013 4
4 ij 2.1 2013 1
to be converted to below dataframe i.e. get month from quarter and split row into 3.
id name value year quarter month
1 an 2.3 2012 1 01
1 an 2.3 2012 1 02
1 an 2.3 2012 1 03
2 yu 3.5 2012 2 04
2 yu 3.5 2012 2 05
2 yu 3.5 2012 2 06
3 ij 3.1 2013 4 10
3 ij 3.1 2013 4 11
3 ij 3.1 2013 4 12
4 ij 2.1 2013 1 01
4 ij 2.1 2013 1 02
4 ij 2.1 2013 1 03