
Pandas

Quiz
•
Computers
•
University
•
Medium
Programming Sikander
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following DataFrame methods will generate various summary statistics, excluding NaN values?
.summary( )
.info()
.stats()
.describe()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have the following DataFrame df:
Month Count
zero Jan 52
one Apr 29
two Mar 46
three Feb 3
Select the code to return the output
Month Count
two Mar 46
three Feb 3
print(df.loc['zero':]
print(df.loc['three':]
print(df.loc['two']
print(df.loc['two' : ]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to select the age row and name column from a DataFrame df?
df['age']['name']
df['name']['age']
df[age][name]
df[name][age]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
s1 = pd.Series([1, 2, 3])
s2 = pd.Series([1, 2, 3])
print(pd.concat([s1, s2], ignore_index=True))
0 2
1 4
2 6
0 1
1 2
2 3
0 1
1 2
2 3
0 1
1 2
2 3
3 1
4 2
5 3
0 1 1
1 2 2
2 3 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have the following Series s:
0 2
1 4
2 6
What is the output of this code?
s2 = pd.Series([4, 8, 12])
print(s.append(s2))
0 2
1 4
2 6
3 4
4 8
5 12
0 2
1 4
2 6
0 4
1 8
2 12
0 2 4
1 4 8
2 6 12
0 6
1 12
2 18
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct code to draw line graph using matplotlib
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct code delete a column from a dataframe?
df.remove( column_name )
df.delete( column_name )
df.drop( column_name, axis = 0 )
df.drop( column_name, axis = 1)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
SAIMLDS

Quiz
•
University
11 questions
Keywords Quiz

Quiz
•
University
13 questions
SDS Recruitment Re-Quiz

Quiz
•
University
20 questions
Day 10 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
University
20 questions
Preguntas sobre Pandas y NumPy

Quiz
•
University
12 questions
Libreria pandas

Quiz
•
University
10 questions
OSI-LAYER

Quiz
•
University
20 questions
Animate Test Review

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University