Day 6 and 7

Day 6 and 7

Professional Development

15 Qs

quiz-placeholder

Similar activities

PRACTICE  SET FOR INTERMEDIATE 2

PRACTICE SET FOR INTERMEDIATE 2

Professional Development

10 Qs

Training Microsoft Excel 2024

Training Microsoft Excel 2024

Professional Development

10 Qs

MS Excel Basics

MS Excel Basics

5th Grade - Professional Development

20 Qs

DP 300Practice 2

DP 300Practice 2

Professional Development

10 Qs

การแก้ปัญหาและการสร้างภาพเคลื่อนไหวโปรแกรม Flash

การแก้ปัญหาและการสร้างภาพเคลื่อนไหวโปรแกรม Flash

KG - Professional Development

12 Qs

SELECT 2

SELECT 2

Professional Development

10 Qs

Google Sheets Quiz: From Importing to Analysis

Google Sheets Quiz: From Importing to Analysis

Professional Development

15 Qs

Quiz

Quiz

Professional Development

18 Qs

Day 6 and 7

Day 6 and 7

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Akash 1705004

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which method would you use to concatenate two DataFrames?

pd.merge()

pd.join()

pd.concat()

pd.append()

2.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

How can you check the first 5 rows of a DataFrame named df?

df.head()

df.first(5)

df.rows(5)

df.show(5)

3.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

How do you delete a column in a dataframe permanently?

  1. df.drop('new_column', axis=1, inplace=True)

  1. df.drop('new_column', axis=1)

  1. df.drop('new_column')

  1. df.drop('new_column', axis=1, inplace=False)

4.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Which is the correct way to select a column from a DataFrame named df?

df.select('column_name')

df['column_name']

df.column_name

Both B and C are correct.

5.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Which method is used to replace missing values in a DataFrame df?

df.fillna(value)

df.replace_null(value)

df.set_values(value)

df.impute(value)

6.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

How can you set multiple columns as the index of a DataFrame df?

df.set_index(['col1', 'col2'])

df.index(['col1', 'col2'])

df.primary_key(['col1', 'col2'])

df.use_index(['col1', 'col2'])

7.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

What is the output of df.describe() where df is a DataFrame?

A DataFrame summarizing the mean, median, and mode of each column

A DataFrame showing the first, second, and third quartiles of each column

A DataFrame providing descriptive statistics

A DataFrame listing the maximum and minimum values of each column

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?