i stuck with the problem how to devide pandas dataframe by row,
i have similar dataframe with column where values separated by \\r\\n and they are in one cell,
You can do:
df["Shape"]=df["Shape"].str.split("\r\n") print(df.explode("Shape").reset_index(drop=True))
Output:
Color Shape Price 0 Green Rectangle 10 1 Green Triangle 10 2 Green Octangle 10 3 Blue Rectangle 15 4 Blue Triangle 15