I have the following dataframe that contains all the data I need. The thing is, each child can be found in the parent column with their own children
- 1000584 is Top level
- 4003773 is Level 1
- 1252665 is Level 2
*1321212 is Level 3
What I want to achieve is this: