diff --git a/doc/user-guide/hierarchical-data.rst b/doc/user-guide/hierarchical-data.rst index 450daf3f06d..84016348676 100644 --- a/doc/user-guide/hierarchical-data.rst +++ b/doc/user-guide/hierarchical-data.rst @@ -200,7 +200,7 @@ and even the distinguishing feature of the common ancestor of any two species (t .. ipython:: python - [node.name for node in primates.ancestors] + [node.name for node in reversed(primates.parents)] primates.root.name primates.find_common_ancestor(dinosaurs).name