in DF have multiple fields: parent_path ,child,level,flag,logic
I want to group the DF by parent_path ,and collect all childs under same parent. I got to this: