We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35cb5d6 + 738e85c commit ce55085Copy full SHA for ce55085
bigtree/tree/modify.py
@@ -1069,6 +1069,7 @@ def _merge_attribute(
1069
common_attribute + "_y",
1070
]
1071
)
1072
+ merged_data = merged_data.sort_values("path")
1073
return construct.dataframe_to_tree(merged_data)
1074
1075
tests/tree/test_modify.py
@@ -2454,7 +2454,6 @@ def test_copy_nodes_from_tree_to_tree_merge_leaves_merge_attribute(self):
2454
merge_leaves=True,
2455
merge_attribute=True,
2456
2457
- self.root_other_full_wrong["b"].sort(key=lambda node: node.node_name)
2458
assert_tree_structure_basenode_root(self.root_other_full_wrong)
2459
assert_tree_structure_basenode_root_attr(self.root_other_full_wrong)
2460
assert_tree_structure_node_root(self.root_other_full_wrong)
0 commit comments