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
Exam (elaborations)

QMB 3302 LATEST 2026 TEST PAPER QUESTIONS AND SOLUTIONS GRADED

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
16-04-2026
Written in
2025/2026

QMB 3302 LATEST 2026 TEST PAPER QUESTIONS AND SOLUTIONS GRADED

Institution
QMB
Course
QMB

Content preview

QMB 3302 LATEST 2026 TEST PAPER QUESTIONS AND
SOLUTIONS GRADED A+
✔✔Imagine we have a dictionary like the 1 below.

data = {"Ones" : [1, 2, 3, 4],
"Tens" : [10, 20, 30, 40]
"Hundreds" : [100, 200, 300, 400]
"Thousands" : [1000, 2000, 3000, 4000]
"TenThousands" : [10000, 20000, 30000, 40000]}

import pandas as pd
data = {'name' : ["Jim", "Joel", "John", "Jack"],
'age' : ["35", "90", "27", "16"]}
df = pd.DataFrame.from_dict(data)
df

If we converted this dictionary into a dataframe using that same procedure, how many
rows and columns would you have? - ✔✔4 rows, 5 columns (if you don't count the index
column)

✔✔Sometimes data needs to be combined. It could be for reasons such as similarities
in the data, 2 separate correlated datasets, or numerous other reasons.

How would we merge the following data frame left aka merge left or a left merge?

df1 = pd.DataFrame({'key' : ['A', 'B', 'C', 'D'], 'value1' : ['1', '2', '3', '4'})
df2 = pd.DataFrame({'key' : ['B', 'D', 'E', 'F'], 'value1' : ['10', '20', '30', '40'}) - ✔✔result =
pd.merge(df1, df2, how = 'left')

✔✔First create a simple dataframe using the code below:

import pandas as pd
#create a list of lists
data = [['A1', 2, 4, 8], ['A2', 3, 7, 17], ['A3', 1, None, 7], ['A4', 989, 186, 3698], ['A5', 0, 0,
None]
#Create the pandas dataframe
df= pd.DataFrame(data, columns = ['id', 'value1', 'value2', 'value3'])
df

If you ran
df = df.dropna()
df
How many rows would remain in the dataframe? - ✔✔3

, ✔✔What package have we been using to import our data, and what is the abbreviation
we've been using?

import PACKAGE as ABBREVIATION - ✔✔pandas, pd

✔✔Assume the data file is in the same folder and location as your code. In other words,
you do not need to create a relative path or any path for that matter. You just need the
name of the file. We will not use a path variable, just the name of the file. Note that in
Week 3 we did this with the "segments.csv" dataset, so you could refer to that example.

homes = - ✔✔homes = pd.read_csv("homes.csv")

✔✔What are 3 of the ways we have explored a dataset in the course videos? -
✔✔.info(), .head(), .describe()

✔✔Missing values can be imputed/replaced with other values. If my dataset has 1000
rows, and 200 missing values for the category age. What could I impute for age?

(THIS QUESTION IS NOT ASKING WHAT YOU SHOULD USE, BUT WHAT YOU
COULD USE) - ✔✔Impute the most common value;
Impute the mean;
Impute the median

✔✔Sometimes when working with (struggling with!) missing values, you find that it is not
missing at all! Sometimes someone has been helpful (!) and entered some placeholder
value like 'THISISMISSING' what that happens, what could you do? (Choose the best
answer, it won't be the only possible answer) - ✔✔Replace 'THISISMISSING' with a
missing value (np.NaN)

✔✔Assume the test data ('test.csv') is loaded into your environment and named 'df'.
df = pd.read_csv('/data/test.csv')

What would produce the below result?
Rows 0-6 - ✔✔df.head(6)

✔✔Let's take a look at the homes dataset.

What is the mean Acreage of the homes?
How many records (count of rows) does the dataset have? - ✔✔0.267 (use
homes.mean())
7478 (use homes.describe())

✔✔I think we are mostly interested in building out a model to predict home sales price.
Without getting into the model, I know I will need some values related to home price.

Written for

Institution
QMB
Course
QMB

Document information

Uploaded on
April 16, 2026
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
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.
BOARDWALK Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
247
Member since
1 year
Number of followers
7
Documents
28032
Last sold
8 hours ago
BOARDWALK ACADEMY

Ace Your Exams With Top Quality study Notes And Paper✅✅ ALL ACADEMIC MATERIALS AVAILABLE WITH US✅✅ LEAVE A REVIEW SO THAT WE CAN LOOK AND IMPROVE OUR MATERIALS.✅✅ WE ARE ALWAYS ONLINE AND AVAILABLE DONT HESITATE TO CONTACT US FOR SYUDY GUIDES!!✅✅ EVERYTHING IS GRADED A+✅✅ COLOUR YOUR GRADES WITH US , WE ARE HERE TO HELP YOU DONT BE RELACTANT TO REACH US

3.5

36 reviews

5
14
4
6
3
8
2
1
1
7

Recently viewed by you

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