Search Header Logo

GirlsWhoML-W1

Authored by NOOR NABEELAK

Computers

University

Used 1+ times

GirlsWhoML-W1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you load a CSV file in Pandas?

pd.read_csv('file_path.csv')
pd.import_csv('file_path.csv')
pd.load_csv('file_path.csv')
pd.open_csv('file_path.csv')

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does df.head() do in Pandas?

df.head() displays the entire DataFrame.
df.head() returns the last 5 rows of a DataFrame.
df.head() returns the first 5 rows of a DataFrame.
df.head() summarizes the DataFrame's statistics.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In which step of ML do we remove missing values and handle outliers?

Feature selection
Data visualization
Model training
Data preprocessing

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you filter rows where the 'Age' column is greater than 30?

df[df['Age'] == 30]

df[df['Age'] >30]

df[df['Age'] >= 30]

df[df['Age'] < 30]

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of feature scaling in machine learning?

To improve the performance of the model

To increase the size of the dataset

To reduce the number of features

To visualize the data better

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can you check for missing values in a DataFrame?

df.isnull()

df.check_missing()

df.hasna()

df.missing_values()

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you save a DataFrame to a new CSV file?

df.to_csv('filename.csv', include_index=True)
df.write.csv('filename.csv')
df.to_csv('filename.csv', index=False)
df.save('filename.csv')

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?