Python study group: Week 3

Quiz
•
Computers
•
12th Grade
•
Medium

Jeff Mao
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following are common errors in python?
Missing colon at the end of a statement
Unexpected indentation
Mismatched brackets
Index error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When debugging an error in your code, which should you do first?
Insert a print statement
Read the error message
Refer to the documentation
Read through your code again
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary data structure in pandas for storing and manipulating data?
Lists
Tuples
Arrays
DataFrames
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you select a specific column from a pandas dataframe?
df.iloc['column_name']
df.loc['column_name']
df.head(column_name)
df['column_name']
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to drop rows with missing values in a pandas dataframe?
clean()
remove()
dropna()
filter()
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following operations are pandas dataframe methods?
merge
na
dropnull
groupby
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a new column in a pandas dataframe based on existing STRING columns?
df['new_column'] = df['col1'] * df['col2']
df['new_column'] = df['col1'] + df['col2']
df['new_column'] = df['col1'] - df['col2']
df['new_column'] = df['col1'] / df['col2']
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Pandas Quiz

Quiz
•
12th Grade
10 questions
Mashdemy 11-15 AI/ML

Quiz
•
9th - 12th Grade
20 questions
PTS KELAS 9

Quiz
•
9th - 12th Grade
15 questions
AP Computer Science A Review 1

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

Quiz
•
1st Grade - University
15 questions
AV1\R1 3TEC_BE_Acesso a Propriedades em JavaScript 1 a 16

Quiz
•
1st Grade - University
10 questions
Reshaping & vStack&hstack( )

Quiz
•
9th Grade - University
20 questions
pyplot in python class 12 (14/08/20)

Quiz
•
12th Grade
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