'Dtreeviz - Same feature on tree level

So I used dtreeviz to get a better view of my decision tree, I quadruple checked all the data, model and everything I did before plotting the decision tree, but when looking at it, we can see on the first level of the tree, that the two features are the same.

I wanted to know if this is ok, or is there an issue with my viz ?

Here is the code for tree plotting :

viz = dtreeviz(tree_model,
               X,
               np.array(y),
               target_name='pairingStatus',
               feature_names=features,
               class_names=tree_model.classes_.tolist()
              )


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source