I'm currently learning python and I'm stuck to resolve a problem. I have a simple genealogy table (2 columns: parent_id, child_id), I would like to create a raw for each path and create a unique ID (keep the same ID if last child is the same). Something like this:enter image description here I tried several methods unsuccessfully. Do you have some ideas? Thank you
