
Pandas DataFrame Quiz
Authored by Sarafali S
Computers
11th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the given code, the dataframe ‘D1’ has ______ rows and ____ columns.
import pandas as pd
LoD = [{‘a’:10, ‘b’:20}, {‘a’:5, ‘b’:10, ‘c’:20}, {‘a’:7, ‘d’:10, ‘e’:20}]
D1 = pd.DataFrame(LoD)
3, 3
3, 4
3, 5
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
D1[ : ] = 77 will set ____ values of a DataFrame ‘D1’ to 77.
Only First Row
Only First Column
All
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following statement will df = df.drop(['Name', 'Class', 'Rollno'], axis = 1) #df is a DataFrame object
delete three columns having labels ‘Name’, ‘Class’, and ‘Rollno’.
delete three rows having labels ‘Name’, ‘Class’, and ‘Rollno’.
delete any three columns
return error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are ways of indexing to access data elements in a DataFrame?
Label-based indexing
Boolean Indexing
All of the above
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following statement is >>> DF=DF.rename({‘Maths’:’Sub1′,‘Science’:’Sub2′}, axis=’index’) #DF is a DataFrame
altering the column labels
altering the row and column labels (both)
Error
altering the row labels
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is transposing the DataFrame ‘DF1’?
DF1.transpose
DF1.T
DF1.Trans
DF1.t
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CSV stands for:
Comma-Separated Values
Comma Separated Variables
Column Separated Values
Column-Separated Variables
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?
Similar Resources on Wayground
10 questions
Types of Animation
Quiz
•
7th - 11th Grade
10 questions
CS Academy Unit 3 Review
Quiz
•
9th - 11th Grade
12 questions
Flash
Quiz
•
11th Grade
15 questions
Computer Apps 2 Exam Review
Quiz
•
9th - 12th Grade
10 questions
Pemrograman Android KD 3.28/4.28
Quiz
•
1st Grade - Professio...
10 questions
Video Editing
Quiz
•
11th - 12th Grade
10 questions
K11 - bài 28 ảnh động
Quiz
•
11th Grade
11 questions
Sains Komputer Tingkatan 5 - 3.3.3 Membina laman web mudah
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade