Search Header Logo

Class-XII_IP_Revision-3

Authored by Preeti Vig

Computers

12th Grade

Used 9+ times

Class-XII_IP_Revision-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

45 sec • 1 pt

1.A two dimensional labelled array that is an ordered collection of columns to store heterogeneous data type is

Series

Numpy Array

Dataframe

Panel

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  1. 2. How can you create a DataFrame in pandas from a dictionary?

df = pandas.DataFrame.from_dict()

df = pandas.read_dict()

df = pandas.DataFrame(dict)

df = pandas.create.DataFrame()

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  1. 3. Which of the following will return the column labels of a DataFrame?

  1. df.rows()

  1. df.columns

  1. df.labels()

  1. df.colnames()

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

4.Which method is used to remove rows with missing values?

df.fillna()

df.drop()

df.remove()

df.dropna()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

5. What does df.shape return?

Number of columns only

Number of rows only

(Number of rows, Number of columns)

Size of each column

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

6. Which function returns the total number of non-null values in each column?

df.count()

df.size()

df.length()

df.notnull()

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

7.How can you read a CSV file into a DataFrame?

df = pandas.read_table('file.csv')

df = pandas.open_csv('file.csv')

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

df = pandas.readfile('file.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?