Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

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

Rating
-
Sold
-
Pages
15
Uploaded on
15-06-2026
Written in
2024/2025

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

Written for

Document information

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

Subjects

$17.49
Get access to the full document:

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

Get to know the seller

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 Arizona State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
60
Member since
2 year
Number of followers
16
Documents
2114
Last sold
7 months ago
Scholarshub Store

Scholars Hub provides well-researched, neatly formatted study materials to help you succeed in both online and in-person exams. From exam study guides,summaries and Q&A guides to MCQs, essays, and practice resources, everything is designed to save you time and reduce stress. Created with contributions from students across U.S. universities, our materials are practical, reliable, and exam-focused. Study like a pro. No stress;just results. ✨ Wishing everyone success in all academic pursuits! ✌️

Read more Read less
3.4

5 reviews

5
2
4
0
3
2
2
0
1
1

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