input dataframe: df col1 col2 col3 col4 code col5 1 xyz abc 123 [00DR,09AS,1X98,OY88] txt1 2 yz1 cab 234 [00,6