Search Header Logo

CSC50S: Advanced Data Structures : Lesson1: Pandas Library

Authored by Achala B

Computers

9th - 10th Grade

Used 34+ times

CSC50S: Advanced Data Structures : Lesson1: Pandas Library
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python Library is used to manipulate the data so that it becomes readable and organised?

NumPy

Library 1

Python np

Pandas

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct statement to add Pandas library in program?

import numpy as np

import P as pandas

import pandas as pd

import pandas

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is DataFrame?

A data structure from Pandas library

A frame in which data is kept

A frame of windows

A data structure from Numpy Library

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following commands is used to convert array named "grades" into data frame named "df_grades"?

df_grades = grades

df_grades = pd.DataFrame(grades)

df_grades = pd.DataFrame("grades")

grades = pd.DataFrame(df_grades)

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following commands can be used to print data frame df_grades?

Print("df_grades")

print("df_grades")

print(df_grades)

display(df_grades)

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following statements will give header to columns for df_grdaes DataFrame?

df_grades.column

df_grades.columns

df_grades_columns

df_grades.columnnames

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the following statement do?

df_grades.index = ["Amna"]

It will add name amna in dataframe

It will add grades for Amna

It will add Amna as a new row header for index 0

It will delete Amna from data frame

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?