
Pandas DataFrame Quiz

Quiz
•
Computers
•
11th Grade
•
Hard
Sarafali S
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
hexadecimal binary decimal

Quiz
•
10th - 12th Grade
10 questions
EDA (Data Preparation)

Quiz
•
11th Grade
15 questions
AV1\R1 3TEC_Ciência de Dados - Aula 01 a 16

Quiz
•
1st Grade - University
8 questions
pandas

Quiz
•
9th Grade - University
7 questions
บทที่ 2 2.1 ม.3/1

Quiz
•
9th - 12th Grade
10 questions
Network Documentation

Quiz
•
11th Grade
10 questions
Wrażenia globlne w Linxie

Quiz
•
10th Grade - University
15 questions
ML Quiz 6

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade