For part 4, we'll go back to working with the original pokedex dataset. The DataFrame should still be loaded inside of t
Posted: Tue Jul 12, 2022 8:16 am
For part 4, we'll go back to working with theoriginal pokedex dataset. The DataFrame should still beloaded inside of the pokedex variable.
E32. Display the number of pokemon in each of the Type2 catgories.
E33. Create a pie chart that visualizes the number of Pokemon ineach Type 2 category. Set the figsize tobe 6 units wide, 6 units high, and with a fontsize of 12. Set ylabel='' when you callthe pie function. This pie chart is a good example of whypie charts are not so great. Making comparisons betweensimilar-sized slices of the pie chart is difficult. The chartshould resemble the following:
E34. Repeat the previous exercise, but this time exclude thosePokemon where Type 2 equals None. The chart shouldresemble the following
E35. Given the challenges inherent in interpreting the piechart, create a horizontal bar chart that displays the number ofPokemon in each Type 2 category. The chart shouldresemble the following:
E36. Repeat the previous exercise, but this time exclude thosePokemon where Type2 equals None or Flying. The chart shouldresemble the following:
E37. Repeat the previous exercise, butuse value_counts instead of grouping operations togenerate the chart. It should resemble the following. Note thedifference in the bar ordering:
E38. Display the number of Pokemon in each ExpGroup using a bar chart. The chart should resemble thefollowing
E39. Display a bar chart that plots the average number of stepsto hatch an egg from a Pokemon for each category in Exp Group.It takes signficantly longer to hatch an egg from Pokemon that takea long time to level up, as you will see in the chart, which shouldresemble the following:
E40. Display a stacked bar chart that shows the relative numberof pokemon in each Exp Group for each Type1 category of Pokemon. Set the figsize to by 8 unitswide and 6 units high. Your plot should resemble the following
E32. Display the number of pokemon in each of the Type2 catgories.
E33. Create a pie chart that visualizes the number of Pokemon ineach Type 2 category. Set the figsize tobe 6 units wide, 6 units high, and with a fontsize of 12. Set ylabel='' when you callthe pie function. This pie chart is a good example of whypie charts are not so great. Making comparisons betweensimilar-sized slices of the pie chart is difficult. The chartshould resemble the following:
E34. Repeat the previous exercise, but this time exclude thosePokemon where Type 2 equals None. The chart shouldresemble the following
E35. Given the challenges inherent in interpreting the piechart, create a horizontal bar chart that displays the number ofPokemon in each Type 2 category. The chart shouldresemble the following:
E36. Repeat the previous exercise, but this time exclude thosePokemon where Type2 equals None or Flying. The chart shouldresemble the following:
E37. Repeat the previous exercise, butuse value_counts instead of grouping operations togenerate the chart. It should resemble the following. Note thedifference in the bar ordering:
E38. Display the number of Pokemon in each ExpGroup using a bar chart. The chart should resemble thefollowing
E39. Display a bar chart that plots the average number of stepsto hatch an egg from a Pokemon for each category in Exp Group.It takes signficantly longer to hatch an egg from Pokemon that takea long time to level up, as you will see in the chart, which shouldresemble the following:
E40. Display a stacked bar chart that shows the relative numberof pokemon in each Exp Group for each Type1 category of Pokemon. Set the figsize to by 8 unitswide and 6 units high. Your plot should resemble the following