I have the following dataframe with a column sig and N other columns.
sig contains N number of column embedded into it as shown below. The embedded column names can be of any number present in the dataframe.
I want to update the sig column with the corresponding values from the other columns.
For example,
+---------------------------------------------------------------------+------------+------------------+-------------------+--------+
|sig |order_timing|po_manl_create_ind|mabd_arrival_status|cut_time|
+---------------------------------------------------------------------+------------+------------------+-------------------+--------+
|R1:BR1-order_timing:BR2-po_manl_create_ind:BR3-mabd_arrival_status:R1|14 |0 |late |23 |
|R1:BR1-order_timing:BR2-po_manl_create_ind:BR7-cut_time:R1 |14 |0 |on_time |10 |
Expected output
+---------------------------------------------------------------------+------------+-----
|sig |order_timing|po_manl_create_ind|mabd_arrival_status|cut_time|
+---------------------------------------------------------------------+------------+-----
|R1:BR1-14:BR2-0:BR3-late:R1|14 |0 |late |23 |
|R1:BR1-14:BR2-0:BR7-10:R1 |14 |0 |on_time |10 |