Which of the following can be used to create a DataFrame?

DataFrames in pandas Set1

Quiz
•
Computers
•
12th Grade
•
Hard
Anjali Luthra
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List of List
Dictionary of List
List of Series
All of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pandas deals with following data structures
Series
Series and Data Frames
Series, DataFrames and Panel
None of Above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To get the number of elements in a DataFrame, ___________________ attribute is used.
index
size
itemsize
ndim
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 • 1 pt
To get the number of dimensions of a Series object, ____________ attribute is displayed
itemsize
size
index
ndim
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Best way to import the pandas module in your program ?
1.import pandas as p
2.import pandas as pd
3.import pandas as d
4.All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
write the output:
import pandas as pd
s=pd.Series([1,2,3,4],index=['a','b','c','d'])
print(s.iloc[2:4])
b 2
c 3
d 4
dtype: int64
b 3
c 4
dtype: int64
c 3
d 4
dtype: int64
none of the above
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
ML Training - Pretest Quiz

Quiz
•
12th Grade
20 questions
Pandas Quiz

Quiz
•
12th Grade
16 questions
Test on dataframe python

Quiz
•
11th - 12th Grade
20 questions
Sjmit-Q2-[Workshop-MAR-25]

Quiz
•
12th Grade - University
15 questions
Practice Class 12 Pandas

Quiz
•
12th Grade
15 questions
AV1\R1 3TEC_Ciência de Dados - Aula 01 a 16

Quiz
•
1st Grade - University
15 questions
Python study group: Week 3

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University