It would be helpful to provide a bit more detail about Gini impurity at: https://carpentries-incubator.github.io/machine-learning-trees-python/02-decision-tree/index.html