Pandas DataFrame Quiz

Pandas DataFrame Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

POST TEST KD 1 ANIMASI 2D3D

POST TEST KD 1 ANIMASI 2D3D

11th Grade

15 Qs

A4 IIIB - EDA con Pandas

A4 IIIB - EDA con Pandas

10th Grade - University

10 Qs

Notes on Blender - Section 8 Review

Notes on Blender - Section 8 Review

6th Grade - University

10 Qs

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

11th Grade - University

10 Qs

Uji Kompetensi Desain Media Interaktif Bab II

Uji Kompetensi Desain Media Interaktif Bab II

11th - 12th Grade

15 Qs

HTML Lessons 1-2

HTML Lessons 1-2

9th - 12th Grade

15 Qs

Enkapsulasi WAN

Enkapsulasi WAN

11th Grade

10 Qs

Pandas DataFrame Quiz

Pandas DataFrame Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Sarafali S

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?