I have a dataframe where i have multiple images for a each label.
Example:
| | Images | Labels |
|---|-----------------------------|----------|
| 0 | ['a.jpg', 'b.jpg', 'c.jpg'] | label1 |
| 1 | ['a.jpg', 'e.jpg', 'f.jpg'] | label2 |
Now what i was expecting is
| | Images | Labels |
|---|-----------------------------|----------|
| 0 | 'a.jpg' | label1 |
| 1 | 'b.jpg' | label1 |
| 2 | 'c.jpg' | label1 |
| 3 | 'a.jpg' | label1 |
| 4 | 'e.jpg' | label2 |
| 5 | 'f.jpg' | label2 |
I have tried using split(',') and explode which is messing then and returning output like this ["['a.jpg'"," 'b.jpg'"," 'c.jpg]"].
here a,b,c,e,f are images urls actually.