Gini impurity in Decision Tree

I am referring https://www.analyticsvidhya.com/blog/2016/04/complete-tutorial-tree-based-modeling-scratch-in-python/ for Gini Impurity. in image attched, I don’t understand, how in female section -> can ply cricket = 2 is derived same for male, how can play cricket= 13 derived.

CAN YOU ALSO PROVIDE RAW DATA FOR THIS EXAMPLE

© Copyright 2013-2019 Analytics Vidhya