O have this table where the type column shows 3 levels of information. I want to transform the second and third level to be in separated column.
number type
10 type 1
10 bottom
10 up
10 1
10 2
10 3
20 type 2
20 bottom
20 up
20 1
20 2
20 3
The expected result is as below:
number type description detail
10 type 1 bottom bottom
10 type 1 up 1
10 type 1 up 2
10 type 1 up 3
20 type 2 bottom bottom
20 type 2 up 1
20 type 2 up 2
20 type 2 up 3
is there any way I can do to make it with python?
Thanks in advance