I am trying to extract data from a pandas Dataframe column that has a specific pattern. I am trying to loop in such that each occurrence is created as a new row. Given below is how the data is:
id: id_101
description: id_name1
id: id_102
description: id_name2
id: id_103
description: id_name3
All of the above content is stored in a single row. I am trying to convert as below where each occurrence is made into a new row:
, id, description
0, id_101, id_name1
1, id_102, id_name2
2, id_103, id_name3