You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
variants=["Grass","Fire","Water","Bug","Normal","Poison","Electric","Ground","Fairy","Fighting","Psychic","Rock","Ghost","Ice","Dragon","Steel","Dark","Flying"] #Defining set of Pokemon types/variants for following function
def Type_1():
plt.pie(pokedexdf['Type_1'].value_counts(),labels=variants,autopct="%1.1f%%",explode=[0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2]) #Creating a pie chart which displays sectors based on value counts of values under Type_1 column, then labelling the sectors with variants list, followed by giving an explode effect of 0.2