What will be the output of following code- import pandas as pd s1=pd.Series([1,2,2,7,’Sachin’,77.5]) print(s1.head()) print(s1.head(3))

Pndas Dara Frames

Quiz
•
Computers
•
12th Grade
•
Hard
Ranga Chary
FREE Resource
100 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
0 1 1 2 2 2 3 7 4 Sachin dtype: object
0 1 1 2 2 2 dtype: object
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a program in python to find maximum value over index in Data frame.
Evaluate responses using AI:
OFF
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the purpose of following statements- 1. df.columns 2. df.iloc[ : , :-5] 3. df[2:8] 4. df[ :] 5. df.iloc[ : -4 , : ]
It displays the names of columns of the Dataframe.
It will display all columns except the last 5 columns.
It displays all columns with row index 2 to 7.
It will display entire dataframe with all rows and columns.
It will display all rows except the last 4 four rows.
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a python program to sort the following data according to ascending order of Age. Name Age Designation Sanjeev 37 Manager Keshav 42 Clerk Rahul 38 Accountant
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a python program to sort the following data according to descending order of Name. Name Age Designation Sanjeev 37 Manager Keshav 42 Clerk Rahul 38 Accountant
Evaluate responses using AI:
OFF
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Which of the following thing can be data in Pandas? 1. A python dictionary 2. An nd array 3. A scalar value 4. All of above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
All pandas data structure are ___________mutable but not always ________mutable. 1. Size, value 2. Semantic , size 3. Value, size 4. None of the above
Size, value
Semantic , size
Value, size
None of the above
Create a free account and access millions of resources
Similar Resources on Quizizz
100 questions
Computer Architecture Year 7 EOU Test

Quiz
•
6th Grade - University
100 questions
A Level Computer Science - Paper 1 (All Key Terms)

Quiz
•
12th Grade
102 questions
Computer Science I 2022-2023

Quiz
•
9th - 12th Grade
100 questions
JOB PROFILE

Quiz
•
10th Grade - University
100 questions
POST TEST - KKTKJ

Quiz
•
10th Grade - University
99 questions
Fall Semester Exam Review

Quiz
•
9th - 12th Grade
100 questions
XII TKJ

Quiz
•
9th - 12th Grade
100 questions
AP CSP Course Vocabulary A1

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade