groupby working and entropy_rice and gini_shannon working