Search Header Logo

Pandas Package

Authored by OL SAY

Computers

University

Pandas Package
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select all possible way to import "pandas" package

import pandas

import pandas as pd

from pandas import *

load pandas

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We import a comma-separated-value file "flights.csv" using "pandas" package by

import pandas as pd

df = pd.read_csv("flights.csv")

import pandas as pd

df = pd.load_csv("flights.csv")

import pandas as pd

df = pd.import_csv("flights.csv")

import pandas as pd

df = pd.open_csv("flights.csv")

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

import pandas as pd

df = pd.read_csv("flights.csv")

We view the first 5 row by

df.head()

df.head(5)

df.head(n=5)

df.tail(n=5)

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

import pandas as pd

df = pd.read_csv("flights.csv")

We view the last 10 rows by

df.tail(n=10)

df.tail(10)

df.head()

df.tail()

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

import pandas as pd

df = pd.read_csv("flights.csv")

We view a quick descriptive statistics of numerical features by

df.describe()

df.describe(include="number")

df.summary()

df.summary(exclude="category")

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

We select column "year" by

df[ "year" ]

df.loc[ : , "year" ]

df.iloc[ : , 0 ]

df.iloc[ : , 1 ]

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

We select the fifth row (with index "4") by

df.loc[4]

df.iloc[4, : ]

df[4, : ]

df[4]

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?