
DataFrames in pandas Set1
Authored by Anjali Luthra
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used to create a DataFrame?
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Bluetooth and Wi-Fi Quiz
Quiz
•
7th Grade - University
18 questions
School Mangement System ICT 0417 IGCSE
Quiz
•
10th - 12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
20 questions
Pemrograman Dasar 3
Quiz
•
9th - 12th Grade
20 questions
PTS KELAS 9
Quiz
•
9th - 12th Grade
20 questions
Quiz on Excel
Quiz
•
12th Grade
20 questions
UKK TKJ 2022-P2
Quiz
•
12th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade