Pandas

Pandas

University

15 Qs

quiz-placeholder

Similar activities

Tes Awal Modul 5

Tes Awal Modul 5

University

10 Qs

Kuiss 1 TIK V PB 1

Kuiss 1 TIK V PB 1

University

10 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Basic Excel

Basic Excel

University

15 Qs

YAY! Fridate with ComSSA (Network 101)

YAY! Fridate with ComSSA (Network 101)

University

20 Qs

Process modeling

Process modeling

University

10 Qs

Bridge course with C

Bridge course with C

University

20 Qs

Quiz Komponen Komputer

Quiz Komponen Komputer

1st Grade - University

10 Qs

Pandas

Pandas

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Programming Sikander

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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

plt.line

plt.plot

plt.hist

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)

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?