Pokemon Scraping
Data background
The data I have chosen to scrape for assignment 7 is a Pokemon database. The goal of scraping this database is to gather information about each of the Pokemon and create graphs to compare the different typings and other interesting information like attack and HP. With the link provided, you can see a Pokemon database with all stats of the Pokemon listed. Link: https://pokemondb.net/pokedex/all
Data Visualization
In the first graph, the goal is to show the attack variable by how much HP a Pokemon has. I am guessing that the higher HP a Pokemon has, the lower attack it has. This can be attributed to the idea in Pokemon that larger Pokemon have a higher hp level.
The next thing I wanted to look at is the relationship between defense and attack. My theory behind this is that if a Pokemon has an extraordinary amount of one, than the other must be low to even the stats out.
Looking at this graph, the correlation shows that my hypothesis was wrong. There is a direct correlation between defense and offense. This must show that with stronger pokemon, both defense and offense improve.
A common occurrence when people play Pokemon video games is the tough decision of what starter to choose out of the types fire, water, and grass. The graph below shows the attacks of all grass type Pokemon on a box plot. As you can see below, when observing the typing through attack, fire and water appear ahead of grass. Additionally, there are two outliers which are very strong Pokemon with high attack levels, these could by legendary Pokemon which skew the data.
A belief I have seen in Pokemon players is that higher HP leads to slower speed. The goal of this visualization is identify any correlation between the two and determine if this belief is based on truth. Below, it shows a smaller correlation between the two. An element I decided to add is color based on attack to show how strong the attacks are for the Pokemon being plotted.
The Final analysis I wanted to perform is the Pokemon with highest combined stats. The visualization shows that all of the Pokemon with the highest totals are legendary or mythic Pokemon.