You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I hope this is the right place to ask this question.
I am migrating the data preparation
I have a CSV that contains the nodes of a hierarchical tree. I now need to reconstruct the hierarchy for each leaf node. Each row should contain the name of the leaf node and all its parents
The hierarchy information is in an awkward format. I only have the level (how far away it is from the root node) and the ordering (the tree was searched depth first). All leaf nodes are level 5.
Schlüssel WZ 2008
Ebene
Titel
G
1
Handel; Instandhaltung und Reparatur von Kraftfahrzeugen
45
2
Handel mit Kraftfahrzeugen; Instandhaltung und Reparatur von Kraftfahrzeugen
45.1
3
Handel mit Kraftwagen
45.11
4
Handel mit Kraftwagen mit einem Gesamtgewicht von 3,5 t oder weniger
45.11.0
5
Handel mit Kraftwagen mit einem Gesamtgewicht von 3,5 t oder weniger
45.19
4
Handel mit Kraftwagen mit einem Gesamtgewicht von mehr als 3,5 t
45.19.0
5
Handel mit Kraftwagen mit einem Gesamtgewicht von mehr als 3,5 t
45.2
3
Instandhaltung und Reparatur von Kraftwagen
45.20
4
Instandhaltung und Reparatur von Kraftwagen
45.20.1
5
Lackieren von Kraftwagen
45.20.2
5
Autowaschanlagen
45.20.3
5
Instandhaltung und Reparatur von Kraftwagen mit einem Gesamtgewicht von 3,5 t oder weniger (ohne Lackierung und Autowäsche)
45.20.4
5
Instandhaltung und Reparatur von Kraftwagen mit einem Gesamtgewicht von mehr als 3,5 t (ohne Lackierung und Autowäsche)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I hope this is the right place to ask this question.
I am migrating the data preparation
I have a CSV that contains the nodes of a hierarchical tree. I now need to reconstruct the hierarchy for each leaf node. Each row should contain the name of the leaf node and all its parents
The hierarchy information is in an awkward format. I only have the level (how far away it is from the root node) and the ordering (the tree was searched depth first). All leaf nodes are level 5.
In pandas this is straightforward:
What is the right way (or even a way) to do this in ibis, given that there is no analog to
.iterrows()
?Beta Was this translation helpful? Give feedback.
All reactions