I have the current querry of pandas data frame,
dfV[(dfV.PERIODE<=10)&(dfV.NN==1)].RANK.value_counts().reset_index().rename(columns={"index":