• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 15 pages
Other

Midterm Review for Data 8 (SU24) - Key Concepts and Problems

Document preview thumbnail
Preview 2 out of 15 pages

This is a detailed and comprehensive Midterm Review practice material that its emphasis is on;Key Concepts and Problems in Data 8. An Essential study resource just for you!!

Content preview

Data 8 Summer 2024 Midterm Review July 10th 2024



1. Tables
You are given the following table called pokemon. For the following questions, fill in the blanks.




1. Find the name of the pokemon of type Waterthat has the highest HP.

waterpokemon = pokemon. ( , )

waterpokemon. ( , ).column("Name").item(0)


waterpokemon = pokemon.where("Type", are.equalto("Water"))

waterpokemon.sort("HP",descending=True).column("Name").item(0)


2. Find the proportion of pokemon of type Firein the dataset whose Speed is strictly less than 100.

firepokemon=pokemon. ( , )

firepokemon. ( , ). /


firepokemon = pokemon.where("Type", "Fire")

firepokemon.where("Speed", are.below(100)).numrows / firepokemon.numrows


3. Create a table containing
Type and Generation that is sorted in decreasing order by the average HP for
each pair of Typeand Generation.

d=pokemon. ( , )

d.sort("HPmean", ). ( , )




1

, d=pokemon.group(make array("Type","Generation"),np.mean)

d.sort("HPmean",descending=True).select("Type","Generation")

or

d=pokemon.group(["Type","Generation"],np.mean)


4. Return an array that contains ratios of legendary to non-legendary pokemons for each generation.

t=pokemon. ( , )

ratio=t. ( )/t. ( )


t=pokemon.pivot("Legendary","Generation")

ratio=t.column("True")/t.column("False")



2. Histograms
Everyone knows Zoomers love their avocado toast, so it comes as no surprise that this Hass Avocado dataset
was a popular selection among your peers! Each type of avocado (PLU 4046, PLU 4225, PLU 4770) has a
corresponding histogram below; each data point in the histogram represents the number of avocados sold in
one order. All bars are 1000 units wide, but take note: the density scale is different in each histogram.
There are 16812 orders shown in the PLU 4046 histogram and 19572 orders shown in the PLU 4225
histogram.




1. Calculate each quantity described below or write Unknown if there is not enough information above to
express the quantity as a single number (not a range). Show your work!



2

Document information

Uploaded on
June 15, 2026
Number of pages
15
Written in
2024/2025
Type
Other
Person
Unknown
$17.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
anyiamgeorge19
3.4
(5)
Sold
63
Followers
16
Items
2225
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions