Search Header Logo

Exploring Data Science Libraries

Authored by vishnu vardhan

Other

11th Grade

Used 8+ times

Exploring Data Science Libraries
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function in NumPy creates an array from a list?

np.create_array()

np.array()

np.list()

np.from_list()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the second element of a NumPy array?

arr[0]

arr[2]

arr[1]

arr.get(1)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the NumPy function `reshape`?

To sort the elements of an array.

To combine multiple arrays into one.

To filter elements based on a condition.

To change the shape of an array without altering its data.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you perform element-wise addition of two NumPy arrays?

Use numpy.multiply() for addition.

Use the '+' operator or numpy.add() to add two NumPy arrays element-wise.

Combine the arrays into a list and sum them.

Use the '-' operator to subtract the arrays.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method in Pandas is used to read a CSV file into a DataFrame?

load_csv

import_csv

fetch_csv

read_csv

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you select a specific column from a Pandas DataFrame?

Use df.select('column_name') to get a column.

Use df['column_name'] or df.column_name to select a specific column.

Access column_name directly with df.column_name() to retrieve.

Call df.get_column('column_name') for selection.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function would you use to get the first five rows of a DataFrame in Pandas?

df.first(5)

df.take(5)

df.slice(5)

df.head(5)

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?