| KC | Knowledge Check |
1️⃣ Multiple Choice
What is a CSV file?
A) A compressed image format
B) A text file used to store tabular data
C) A Python program
D) A database server
Select the correct answer.
2️⃣ Multiple Choice
What is a DataFrame in Pandas?
A) A collection of images
B) A table consisting of rows and columns
C) A Python loop
D) A mathematical formula
Select the correct answer.
3️⃣ Multiple Choice
Assume:
df.head()
What does this command display?
A) The last five rows of the DataFrame
B) The first five rows of the DataFrame
C) The names of all columns
D) The number of rows
Select the correct answer.
4️⃣ Multiple Choice
Assume:
df.iloc[0]
What does this command return?
A) The first row of the DataFrame
B) The first column of the DataFrame
C) The last row of the DataFrame
D) An error
Select the correct answer.
5️⃣ Multiple Choice
Assume:
df["Name"].values
What does this command return?
A) The complete DataFrame
B) The values stored in the column "Name"
C) The first row of the DataFrame
D) The number of rows
Select the correct answer.
Discussion
The solutions will be discussed during the course session.