Search Header Logo

PWC_Python_Day 3

Authored by CloudThat Technologies

Computers

Professional Development

Used 1+ times

PWC_Python_Day 3
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 • 5 pts

The most important object defined in NumPy is an N-dimensional array type called?

narray

darray

nd_array

ndarray

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Pandas deals with following data structures

Series

Series and Data Frames

Series, DataFrames and Panel

None of Above

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which is the correct Pandas syntax to read in a csv file and assign it to a DataFrame df?

df = read_csv('file.csv')

df = read('file.csv', type = 'csv')

df = pd.read_csv('file.csv')

df = with open('file.csv') as pd.DataFrame

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Give the output of the following code

import pandas as pd

dict1 = {'AR' : 100, 'VR' : 200, 'AI' : 300}

ser = pd.Series(dict1)

print(ser[1])

AR

100

VR

200

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Which of the following command is used to display only NAME and DOB from the above dataframe?

pd.DataFrame(DICT1, columns=["NAME","DOB"])

pd.DataFrame(DICT1, index=["NAME","DOB"])

pd.DataFrame(DICT1, index=["NAME":"DOB"])

pd.DataFrame(DICT1, columns=["NAME":"DOB"])

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Which of the following statements is used to check the people whose score >500?

DICT1[4]>=500

DICT1["SCORE"]>=500

DICT1["SCORE"]<=500

DICT1["SCORE">=500]

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

pandas is a:

Data Structure

Series

Dataframe

Library

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?