
Data Mining - 04
Authored by Paul Lavarez
Information Technology (IT)
6th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
In our last meeting, what are the key things you learned about Python, Pandas, or NumPy? Also, which parts did you find most difficult or confusing,
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
30 sec • 9 pts
What is the purpose of the line import pandas as pd?
To rename the Python interpreter
To import the pandas library with an alias
To install pandas in the code
To import pandas and NumPy together
3.
MULTIPLE CHOICE QUESTION
30 sec • 4 pts
In the code, what does df = pd.DataFrame(data) do?
It deletes the dictionary named data
It converts data into a DataFrame object
It renames the dictionary data into df
It creates a NumPy array from data
4.
MULTIPLE CHOICE QUESTION
30 sec • 4 pts
What will the variable fruit_count store?
The number of unique categories in the DataFrame
The total number of rows in the DataFrame
The count of rows where the category is 'Fruit'
The price sum of all 'Fruit' items
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following best represents the output of the code?
Number of rows with 'Fruit' category: 1
Number of rows with 'Fruit' category: 2
Number of rows with 'Fruit' category: 3
Number of rows with 'Fruit' category: 4
6.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
If we want to calculate the average Price of all items, which Pandas function is most appropriate?
df['Price'].mean()
df['Price'].sum()
df['Price'].count()
df['Price'].min()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?