dataframe 'df' has the following data -
| Column A | Column B |
|---|---|
| Item_ID1 | Information - information for item that has ID as 1\nPrice - $7.99\nPlace - Albany, NY |
| Item_ID2 | Information - item's information with ID as 2\nPrice - $5.99\nPlace - Ottawa, ON |
How to segregate the values from column B using 'Information', 'Price', and 'Place' into different columns like -
| Column A | Information | Price | Place |
|---|---|---|---|
| Item_ID1 | information for item that has ID as 1 | $7.99 | Albany, NY |
| Item_ID2 | item's information with ID as 2 | $5.99 | Ottawa, ON |
I tried splitting the column B based on string values like 'Information - ', 'Price - ', 'Place - ' but that is becoming more complicated and the very first slice has information on Price and Place which is not required in it.