I have DF as:
code_range CCS CCS_Label icode
'0112-0115' 232 Anesthesia 0112, 0115
'0118-0120' 232 Anesthesia 0118, 0120
I need to generate the numbers between two values of icode(column) and append those values to df keeping other column-values same. And delete the old rows. Somewhat like expanding rows. My excepted solution:
code_range CCS CCS_Label icode
'0112-0115' 232 Anesthesia 0112
'0112-0115' 232 Anesthesia 0113
'0112-0115' 232 Anesthesia 0114
'0112-0115' 232 Anesthesia 0115
'0118-0120' 232 Anesthesia 0118
'0118-0120' 232 Anesthesia 0119
'0118-0120' 232 Anesthesia 0120
On spending good amount of time also I am not able to find the right approach to the problem. Please help to resolve the problem.
Thanks in Advance..