{"id":37391,"date":"2022-02-18T18:47:14","date_gmt":"2022-02-18T13:17:14","guid":{"rendered":"https:\/\/mcq-questions.com\/?p=37391"},"modified":"2022-02-19T10:50:09","modified_gmt":"2022-02-19T05:20:09","slug":"case-based-mcq-questions-for-class-12-informatics-practices-python-pandas","status":"publish","type":"post","link":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/","title":{"rendered":"Case Based MCQ Questions for Class 12 Informatics Practices – Python Pandas"},"content":{"rendered":"

Python Pandas Class 12 Case Based MCQ Questions<\/h2>\n

Case Study 1<\/span>
\nPandas Data Structure: A data structure is a particular way of storing and organising data in a computer to suit a specific purpose so that it can be accessed and worked with in appropriate ways. Pandas offer many data structures to handle a variety of data. At very basic level, Pandas data structure can be thought of somewhat as enhanced version
\nof NumPy structured arrays in which the rows and columns can be identified and accessed with labels rather than simple integer indices.<\/p>\n

(a) Out of many data structures of Pandas, two basic data structures and are universally popular for their dependability.<\/h2>\n

(i) Series, Dataframe
\n(ii) Matplotlib, NumPy
\n(iii) ID array and 2D array
\n(iv) None of these
\nAnswer:
\n(i) Series, Dataframe
\n\"Case<\/p>\n

(b) Dataframe is a data structure of Python Pandas.<\/h2>\n

(i) 2 – Dimensional
\n(ii) 1 – Dimensional
\n(iii) Both (i) and (ii)
\n(iv) None of these
\nAnswer:
\n(i) 2 – Dimensional<\/p>\n

(c) A Series is a Pandas data structure that represents a one-dimensional array like object containing an array of data and an associated array of data Labels, called its<\/h2>\n

(i) Row
\n(ii) Column
\n(iii) Label
\n(iv) Index
\nAnswer:
\n(iv) Index<\/p>\n

(d) When numeric indexes can depict positions of data in the objects (e.g., when indexes go as 0,1, 2,), they are called<\/h2>\n

(i) Labelled indexes
\n(ii) Positional indexes
\n(iii) Both (i) and (ii)
\n(iv) None of these
\nAnswer:
\n(i) Labelled indexes<\/p>\n

(e) A series type objects can be created in many ways using Pandas library\u2019s<\/h2>\n

(i) Series ( )
\n(ii) SeriesObject( )
\n(iii) Series.Object( )
\n(iv) None of these
\nAnswer:
\n(i) Series( )<\/p>\n

\"Case<\/p>\n

Case Study 2<\/span><\/p>\n

Consider the following DataFrame df and answer any four questions from (a) – (e):<\/p>\n\n\n\n\n\n\n\n\n\n
Name<\/td>\nUT1<\/td>\nUT2<\/td>\nUT3<\/td>\nUT4<\/td>\n<\/tr>\n
1. Prerna Singh<\/td>\n24<\/td>\n24<\/td>\n20<\/td>\n22<\/td>\n<\/tr>\n
2. Manish\u00a0 Arora<\/td>\n18<\/td>\n17<\/td>\n19<\/td>\n22<\/td>\n<\/tr>\n
3. Tanish Goel<\/td>\n20<\/td>\n22<\/td>\n18<\/td>\n24<\/td>\n<\/tr>\n
4. Falguni Jain<\/td>\n22<\/td>\n20<\/td>\n24<\/td>\n20<\/td>\n<\/tr>\n
5. Kanika Bhatnagar<\/td>\n15<\/td>\n20<\/td>\n18<\/td>\n22<\/td>\n<\/tr>\n
6. Ramandeep Kaur<\/td>\n20<\/td>\n15<\/td>\n22<\/td>\n24<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(a) Write down the command that will give the following output:<\/h2>\n

rollno\u00a0 \u00a06
\nname\u00a0 \u00a0Tanish Goel
\nUT1\u00a0 \u00a0 \u00a024
\nUT2\u00a0 \u00a0 \u00a024
\nUT3\u00a0 \u00a0 \u00a024
\nUT4\u00a0 \u00a0 \u00a024
\ndtype: object<\/p>\n

(i) print(df.max)
\n(ii) print(df.max())
\n(iii) print(df.max(axis=1))
\n(iv) print(df.max, axis=1)
\nAnswer:
\n(ii) print(df.max())<\/p>\n

\"Case<\/p>\n

(b) The teacher needs to know the marks scored by the student with roll number 4. Help her identify the correct set of statement(s) from the given options:<\/h2>\n

(i) df1= df[df[\u2018rollno\u2019] = 4) print(dfl)
\n(ii) df1= df(rollno = 4] print(dfl)
\n(iii) df1= df(df.rollno = 4] print(dfl)
\n(iv) dfl= df(df.rollno = 4) print(dfl)
\nAnswer:
\n(i) dfl = df[df(‘rollno’)= 4] print (dfl)<\/p>\n

(c) Which of the following statement(s) will give the exact number of values in each column of the dataframe?<\/h2>\n

I. print(df.countO)
\nII. print(df.count(0))
\nIII. print(df.count)
\nIV. print((df.count(axis =\u2018index\u2019))
\nChoose the correct option:
\n(i) I and II (ii) only II
\n(iii) I, II and III (iv) I, II and IV
\nAnswer:
\n(i) I and II<\/p>\n

(d) Which of the following command will display the column labels of the dataframe?<\/h2>\n

(i) print(df.columns())
\n(ii) print(df.column())
\n(iii) print(df.column)
\n(iv) print(df.columns)
\nAnswer:
\n(iv) print(df.columns)<\/p>\n

(e) Mrs. Sharma, the class teacher wants to add a new column, the scores of Grade with the values, X B\u2019, X X B\u2019, X to the dataframe. Help her choose the command to do so:<\/h2>\n

(i) df.column= (\u2018A\u2019, ‘B’, A\u2019, A\u2019, ‘B’, A)
\n(ii) df[‘Grade\u2019) =(A\u2019, \u2018B\u2019, \u2018A\u2019, A\u2019, \u2018B\u2019, A’]
\n(iii) df.loc(\u2018Grade’)= (A’, B\u2019, A\u2019, A\u2019, \u2018B\u2019, A)
\n(iv) Both (ii) and (iii) are correct
\nAnswer:
\n(ii) df(‘Grade\u2019) = (A, ‘B’, A, A, \u2018B\u2019, A]<\/p>\n

Case Study 3<\/p>\n

Mr. Ankit is working in an organisation as data analyst. He uses Python Pandas and Matplotlib for the same. He got a dataset of the passengers for the year 2010 to 2012 for January, March and December. His manager wants certain information from him, but he is facing some problems..Help him by answering few questions given below:<\/p>\n\n\n\n\n\n\n\n\n
Year<\/td>\nMonth<\/td>\nPassengers<\/td>\n<\/tr>\n
0<\/td>\n2010<\/td>\nJan 25<\/td>\n<\/tr>\n
1<\/td>\n2010<\/td>\nMar 50<\/td>\n<\/tr>\n
2<\/td>\n2012<\/td>\nJan 35<\/td>\n<\/tr>\n
3<\/td>\n2010<\/td>\nDec 55<\/td>\n<\/tr>\n
4<\/td>\n2012<\/td>\nDec 65<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Code to create the above dataframe: import pandas as ……… Statement data = {“Year”: [2010,2010,2012,2010,2012], ”Month”:
\n[“Jan”, “Mar”, “Jan”, “Dec”, “Dec”], “Passengers”:[25,50,35,55,65] } df=pd (data) #Statement 2 print(df)<\/p>\n

(a) Choose the right code from the following for statement 1.<\/h2>\n

(i) pd
\n(ii) df
\n(iii) data
\n(iv) p
\nAnswer:
\n(i) pd<\/p>\n

(b) Choose the right code from the following for the statement 2.<\/h2>\n

(i) DataArray
\n(ii) DataFrame
\n(iii) Series
\n(iv) Dictionary
\nAnswer:
\n(ii) DataFrame<\/p>\n

(c) Choose the correct statement\/method for the required output: (5,3)<\/h2>\n

(i) df.index
\n(ii) df,shape()
\n(iii) df.shape
\n(iv) df.size
\nAnswer:
\n(iii) df.shape<\/p>\n

(d) He wants to print the details of \u201cJanuary\u201d month along with the number of passengers. Identify the correct statement:<\/h2>\n

Month Passengers
\n0 Jan 25
\n2 Jan 35
\n(i) df.loc([\u2018Month\u2019,\u2018Passenger5\u2019]][df(‘Month’)=-Jan’)
\n(ii) df((‘Month’,\u2018Passengers’]](df(\u2018Month\u2019]==’Jan’]
\n(iii) df.iloc((\u2018Month\u2019,,Passengers\u2019])(df(‘Month’)==’Jan’)
\n(iv) df([‘Month\u2019,’Passengers’]][df(\u2018Month’]==Jan’)
\nAnswer:
\n(ii) df[(\u2018Month’,\u2018Passengers’])(df(‘Month’]==\u2019Jan’]<\/p>\n

(e) Mr. Ankit wants to change the index of the dataframe and the output for the same is given below. Identify the correct statement to change the index.<\/h2>\n\n\n\n\n\n\n\n\n
Year<\/td>\nMonth<\/td>\nPassengers<\/td>\n<\/tr>\n
Air India<\/td>\n2010<\/td>\nJan 25<\/td>\n<\/tr>\n
Indigo<\/td>\n2010<\/td>\nMar 50<\/td>\n<\/tr>\n
Spicejet<\/td>\n2012<\/td>\nJan 35<\/td>\n<\/tr>\n
Jet<\/td>\n2010<\/td>\nDec 55<\/td>\n<\/tr>\n
Emirates<\/td>\n2012<\/td>\nDec 65<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(i) df.index(]=[\u201cAir India\u201d,\u201cIndigo\u201d,\u201cSpicejet\u201d,”Jet”,\u201cEmirates’]
\n(ii) df.index(\u201cAir India\u201d,\u201cIndigo\u201d,\u201cSpiceiet”,”Jet\u201d,”Emirates”]
\n(iii) df.index=(“Air India\u201d,\u201cIndigo”,\u201cSpiceiet\u201d,\u201cJet”,\u201cEmirates”]
\n(iv) df.index()=[\u201cAir India\u201d,”Indigo”,\u201cSpicejet\u201d,\u201cJet”,\u201cEmirates\u201d]
\nAnswer:
\n(iii) df.index=(\u201cAir India\u201d,\u201cIndigo\u201d,\u201cSpicejetVJet”, “Emirates”]<\/p>\n

Case Study 4<\/span><\/p>\n

Answer the following based on the series given below. import pandas as pd listl=[l,2,3,4,5,6,7,8] list2=[‘swimming’,’tt’,’skating’,’kho kho’, ‘bb’, ‘chess’, ‘football’,”cricket”] school=pd.Series(listl,index=list2) school.name=(“little”) print (school*2) #statement 1 print (school.tail(3)) # statement 2 print (school[“tt”]) # statement 3 print (school[2:4]) # statement 4<\/p>\n

(a) Choose the correct name of the series object given above.<\/h2>\n

(i) list 1
\n(ii) list 2
\n(iii) school
\n(iv) little
\nAnswer:
\n(iv) little<\/p>\n

\"Case<\/p>\n

(b) Choose the correct output for the statement, print (school.tail(3)) # statement 2<\/h2>\n

(i) swimming 1
\n(ii) chess 6 tt 2 football 7 skating 3 cricket 8
\n(iii) 4
\n(iv) kho kho 4 bb 5 chess 6 football 7 cricket 8
\nAnswer:
\n(ii) chess 6 football 7 cricket 8<\/p>\n

(c) Choose the correct output for the statement, print (school[“tt”]). # statement 3<\/h2>\n

(i) 2
\n(ii) 3
\n(iii) tt 2
\n(iv) true
\nAnswer:
\n(i) 2<\/p>\n

(d) Identify the correct output for: print (school[2:4]) ft statement 4.
\n(ii) tt 2 skating 3 kho kho 4
\n(iv) skating 3 kho kho 4 bb 5 chess 6 football 7 cricket 8
\nAnswer:
\n(i) skating 3 kho kho 4<\/p>\n

(e) The correct output of the statetment: print (school*2) # statement 1 will be:<\/h2>\n

(i) swimming 3
\n(ii) swimming False
\ntt 4 tt False
\nskating 5 skating True
\nkho kho 6 kho kho True
\nbb 7 bb True
\nchess 8 chess True
\nfootball 9 football True
\ncricket 10 cricket True
\n(iii) swimming 2 tt 4
\nskating 6 kho kho 8 7 bb10 –
\nchess 12 football 14 cricket 16<\/p>\n

Answer:
\n(iii) swimming 2 tt 4
\nskating 6 kho kho 8 bb 10 chess 12 football 14 cricket 16<\/p>\n

Case Study 5<\/span><\/p>\n

Sanyukta is the event incharge in a school. One of her students gave her a suggestion to use Python Pandas and Matplotlib for analysing and visualising the data, respectively. She has created a Data frame \u201cSportsDay” to keep track of the number of First, Second and Third prizes won by different houses in various events.<\/p>\n\n\n\n\n\n\n\n\n\n
House<\/td>\nFirst<\/td>\nSecond<\/td>\nThird<\/td>\n<\/tr>\n
0.\u00a0\u00a0\u00a0\u00a0\u00a0 Chenab<\/td>\n5<\/td>\n7<\/td>\n6<\/td>\n<\/tr>\n
1.\u00a0\u00a0\u00a0\u00a0\u00a0 Canges<\/td>\n10<\/td>\n5<\/td>\n4<\/td>\n<\/tr>\n
2.\u00a0\u00a0\u00a0\u00a0\u00a0 Jamuna<\/td>\n8<\/td>\n13<\/td>\n15<\/td>\n<\/tr>\n
3.\u00a0\u00a0\u00a0\u00a0\u00a0 Jhelum<\/td>\n12<\/td>\n9<\/td>\n12<\/td>\n<\/tr>\n
4.\u00a0\u00a0\u00a0\u00a0\u00a0 Ravi<\/td>\n5<\/td>\n11<\/td>\n10<\/td>\n<\/tr>\n
5.\u00a0\u00a0\u00a0\u00a0\u00a0 Satluj<\/td>\n10<\/td>\n5<\/td>\n3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Write Python commands to do the following:<\/p>\n

(a) Display the house names where the number of Second Prizes are in the range of 12 to 20.<\/h2>\n

(i) df[‘Name’]((df(‘Second’)>=12) and (df[‘Second,)<=20)]
\n(ii) df(Name]((df[‘Second\u2019]>=12) & (df(‘Second’]<=20)]
\n(iii) df(‘Name’)[(df(‘Second’)>=12) & (df[‘Second’]<=20)]
\n(iv) df[(df[‘Second’]>=12) & (df(‘Second’]<=20)]
\nAnswer:
\n(iii) df(‘Name’]((df(‘Second’)>=12) & (df(‘Second’]<=20))<\/p>\n

(b) Display all the records in the reverse order.<\/h2>\n

(i) print(df[::1])
\n(ii) print(df.iloc(::-1])
\n(iii) print(df(-1:]+df[:-1])
\n(iv) print(df.rever5e())
\nAnswer:
\n(ii) print(df.iloc(::-1])<\/p>\n

(c) Display the bottom 3 records.<\/h2>\n

(i) df.last(3)
\n(ii) df.bottom(3)
\n(iii) df.next(3)
\n(iv) df.tail(3)
\nAnswer:
\n(iv) df.tail(3)<\/p>\n

(d) Choose the correct output for the given statements. x=df.columns[:l] print(x)<\/h2>\n

(i) 0
\n(ii) Name
\n(iii) First
\n(iv) Error
\nAnswer:
\n(ii) Name<\/p>\n

(e) Which command will give the output 24?<\/h2>\n

(i) print(df.size)
\n(ii) print(df.shape)
\n(iii) print(df.index)
\n(iv) print(df.axes) ‘
\nAnswer:
\n(i) print(df.size)<\/p>\n

Case Study 6<\/span><\/p>\n

Pushp, a student of class-XII, has been assigned a code to create a panda series SI, as shown below,
\na 100
\nb 200
\nc 300
\nd 400
\ne 500
\ndtype: int64
\nWith reference to the above answer given questions:<\/p>\n

(a) Choose the command that will give the following output<\/h2>\n

b 200
\nc 300
\ndtype: int64
\n(i) print(Sl(:3])
\n(ii) print(S1(0:3])
\n(iii) print(51(1:3))
\n(iv) print(S1[2:4])
\nAnswer:
\n(iii) print(S1(1:3))<\/p>\n

\"Case<\/p>\n

(b) Help him to identify the correct statement that can be used to extract the value with the index ‘c’.<\/h2>\n

(i) print(S1(c))
\n(ii) print(S1(c))
\n(iii) print(’51’ (‘c’])
\n(iv) print(S1 [‘c’])
\nAnswer:
\n(iv) print(S1 (‘c’])<\/p>\n

(c) Which of the following command will give the following output?<\/h2>\n

b 200
\nd 400
\ndtype: int64
\n(i) print(S1.iloc(1:4])
\n(ii) print(51.iloc(2:4])
\n(iii) print(S1.iloc(1:4))
\n(iv) print(Sl.iloc(l:4:2])
\nAnswer:
\n(iv) print(S1.iloc(1:4:2))<\/p>\n

(d) Which of the following command will display the series by adding 10 in each value?<\/h2>\n

(i) print(51 [+10])
\n(ii) print(51+10)
\n(iii) print(S1)+10
\n(iv) print(S1)+print(10)
\nAnswer:
\n(ii) print(51+10)<\/p>\n

(e) Pushp wants to delete the value against index’d’. Help him to choose the suitable option to do so:<\/h2>\n

(i) S1=S1.drop(‘d’)
\n(ii) S1=S1.drop(‘d’)
\n(iii) S1=drop(‘d’)
\n(iv) S1=S1.drop(\u2019d’]
\nAnswer:
\n(ii) S1=S1.drop(‘d’)<\/p>\n

Case Study 7<\/span><\/p>\n

Zeenat has created the following data frame dataframel to keep track of data Rollno, Name, Marksl and Marks2 for various students of her cLass where row indexes are taken as *he default values:<\/p>\n\n\n\n\n\n\n\n
Name<\/td>\nMarks 1<\/td>\nMarks 2<\/td>\n<\/tr>\n
1 Swapnil Sharma<\/td>\n3b<\/td>\n50<\/td>\n<\/tr>\n
2 Raj Batra<\/td>\n75<\/td>\n45<\/td>\n<\/tr>\n
3 Bhoomi Singh<\/td>\n85<\/td>\n95<\/td>\n<\/tr>\n
4 Jay Gupta<\/td>\n90<\/td>\n95<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(a) Which among the following option will give 90, 95 as output?<\/h2>\n

(i) print(max(dataframe1(,MarksT,’Marks2′))
\n(ii) print((dataframe1.Marks1.max(),(dataframe1.Marks2. max())))
\n(iii) print(max(dataframe1[‘MarksT])
\n(iv) print(max(dataframe1[‘Marks2’))
\nAnswer:
\n(ii) print((dataframe1.Marksl.max(),(dataframel.Marks2. max())))<\/p>\n

(b) She needs to know the marks scored by Rollno 2. Help her to identify the correct set of statement\/s from the given options.<\/h2>\n

(i) print(dataframe1(dataframe1(‘Rollno’]= =2])
\n(ii) print(dataframe1[‘Rollno’]= =2)
\n(iii) print(dataframe1(dataframe1. Rollno = =2))
\n(iv) print(dataframe1(dataframe1(‘Rollno’]))
\nAnswer:
\n(iii) print(dataframe1(dataframe1. Rollno = =2])<\/p>\n

(c) Which of the following statement\/s will delete the 3rd column?<\/h2>\n

a. del dataframel[‘Marksl’]
\nb. dataframel.pop(‘Marksl’)
\nc. drop dataframel[‘Marksl’]
\nd. pop dataframel[‘Marksl’]
\nChoose the correct option.
\n(i) Both a. and b.
\n(ii) only b.
\n(iii) a. b. and c.
\n(iv) a., b. and d.
\nAnswer:
\n(i) Both a. and b.<\/p>\n

\"Case<\/p>\n

(d) Which of the following command will display the total number of elements in the dataframe?<\/h2>\n

(i) print(dataframel.shape)
\n(ii) print(dataframel.num)
\n(iii) print(dataframelsize)
\n(iv) print(dataframe1.elements)
\nAnswer:
\n(iii) print(dataframel.size)<\/p>\n

(e) Now she wants to add a new column Marks3 with relevant data. Help her choose the command to perform this task.<\/h2>\n

(i) dataframel.column=[ 45,52,90,95]
\n(ii) dataframel [‘Marks3′]= [ 45,52,90,95]
\n(iii) dataframel.locfMarksB’]^ (45,52,90,95]
\n(iv) Both (ii) and (iii) are correct
\nAnswer: (ii) dataframel (‘Marks3’]= (45,52,90,95]<\/p>\n

Case Study 8<\/span><\/p>\n

Naman has created the following dataframe \u201cClimate\u201d to record the data about climatic conditions of four years.<\/p>\n\n\n\n\n\n\n\n
Year<\/td>\nMaxTemp<\/td>\nMinTemp<\/td>\nRainfall<\/td>\n<\/tr>\n
2017<\/td>\n32<\/td>\n20<\/td>\n123<\/td>\n<\/tr>\n
2018<\/td>\n33<\/td>\n22<\/td>\n140<\/td>\n<\/tr>\n
2019<\/td>\n35<\/td>\n21<\/td>\n135<\/td>\n<\/tr>\n
2020<\/td>\n34<\/td>\n23<\/td>\n160<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(a) Which of the foLlowing code snippets will return the MaxTemp and Rainfall for year 2018 and 2019?<\/h2>\n

(i) Climate[‘MaxTemp’,’Rainfall’][1:3]
\n(ii) Climate[‘MaxTemp’, ‘Rainfall’][1:3]
\n(iii) Climate.iloc[(1:3]
\n(iv) Climate.iloc[1:3,1:2]
\nAnswer:
\n(iii) Climate.iloc[1:3]<\/p>\n

(b) Display the temperature difference between MaxTemp and MinTemp for all the rows in the dataframe Climate.<\/h2>\n

(i) Climate=Qimate(”MaxTemp”)-Qimate(“MinTemp”)
\n(ii) print(Climate(“maxt”]-Climate(“mint”])
\n(iii) print(Qimate[“MaxTemp\u201d]-Climate(“MinTemp”])
\n(iv) print(Climate.Climate(”MaxTemp”]-Climate(“MinTemp\u201c]) Answer: (iii) print(Climate(“MaxTemp”)-Climate(“MinTemp”])<\/p>\n

(c) To display 2 rows from the top in the dataframe, which of the following statement is correct?<\/h2>\n

(i) print (Climate.head( )=2)
\n(ii) print (Climate.head(n=2))
\n(iii) print (Climate.head(range(2)))
\n(iv) print (Climate.head(2))
\nAnswer:
\n(iv) print (Climate.head(2))<\/p>\n

(d) Which of the following statement\/s will give the exact number of values in each column of the dataframe?<\/h2>\n

(a) print(Climate.count())
\n(b) print(Climate.count(0))
\n(c) print(Climate.count)
\n(d) print(Climate.count(axis=’index’))
\nChoose the correct option.
\n(i) Both a. and b.
\n(ii) only b.
\n(iii) a. b. and c.
\n(iv) a. b, and d.
\nAnswer:
\n(iv) a. b. and d.<\/p>\n

(e) To display 2 rows from the bottom in the dataframe, which of the following statement is correct?<\/h2>\n

(i) print (Climate.tail()=2)
\n(ii) print (Climate.tail(n=2))
\n(iii) print(Climate.tail(range(2)))
\n(iv) print (Climate.tail(2))
\nAnswer:
\n(iv) print (Climate.tail(2))<\/p>\n

Case Study 9<\/span><\/p>\n

HR Department of ABC Tech has created following dataframe to store data about salaries and bonus paid to their employees: import pandas as pd import numpy as np . dl={‘EName’:[ ‘Kavita’, ‘Sudha’, ‘Garima’]’], ‘Sal’:[50000,60000,5 5000]\/ Bonus’:[3000,4000,5000]} Dfl=pd.DataFrame(dl) :
\nChoose the python statement using suitable functions for the ; following tasks.<\/p>\n

(a) Display the columns Sal and Bonus.<\/h2>\n

(i) dfl [Sal :Bonus]
\n(ii) dfliloc([‘Sal’,,Bonu5′])
\n(iii) dfl.iloc([‘Sal’,’Bonus\u2019])
\n(iv) dfl([‘Sal’,’Bonus’])
\nAnswer:
\n(ii) df1.loc([‘Sal’,’Bonus’])<\/p>\n

(b) Display the details of employee Kavita.<\/h2>\n

(i) dfl[df1.EName-Kavita’]
\n(ii) dfl.loc[df1.EName==’Kavita’]
\n(iii) dfl.iloc[df1.EName=-Kavita’]
\n(iv) dfl[(EName=’Kavita’]
\nAnswer:
\n(iv) df1.loc[df1.EName==’Kavita’]<\/p>\n

(c) Display the details of the last employee.<\/h2>\n

(i) Dfl.tail(1)
\n(ii) Dfl.tail (-1)
\n(iii) Dfl.head(n=1)
\n(iv) Dfl.head( )
\nAnswer:
\n(i) Dfl.tail(1)<\/p>\n

\"Case<\/p>\n

(d) Add a new column named \u2018Email\u2019 with the value \u201cabc@ gmail.com”.<\/h2>\n

(i) Df1[‘Email]= ‘abc@gmail.com’
\n(ii) Df1[Email]=’abc@gmail.com’
\n(iii) Df1.loc[\u2018Email’]=’abc@gmail.com’
\n(iv) Df1[\u2018Email\u2019]=’abc@gmail.com’
\nAnswer:
\n(i) Df1[\u2018Email\u2019]= ‘abc@gmail.com’<\/p>\n

(e) Write a python statement to print the details of employees having Sal more than 50000.<\/h2>\n

(i) dfl.Sal>=5000
\n(ii) dfl(df1.Sal>=5000]
\n(iii) dfl(df1.’Sal’>=5000]
\n(iv) dfl.iloc[df1.Sat>=5000)
\nAnswer:
\n(ii) dfl[dfl.Sal>=5000]<\/p>\n

Case Study 10<\/span><\/p>\n

Consider the dataframe, namely Sdf, given below an answer questions a. to e. StudentID Homework Midterm Project Final<\/p>\n\n\n\n\n\n\n\n
Student ID<\/td>\nHomework<\/td>\nMidterm<\/td>\nProject<\/td>\nFinal<\/td>\n<\/tr>\n
4560<\/td>\n100<\/td>\n97<\/td>\n100<\/td>\n95<\/td>\n<\/tr>\n
5540<\/td>\n85<\/td>\n90<\/td>\n88<\/td>\n90<\/td>\n<\/tr>\n
6889<\/td>\n92<\/td>\n85<\/td>\n88<\/td>\n87<\/td>\n<\/tr>\n
6817<\/td>\n65<\/td>\n85<\/td>\n87<\/td>\n89<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(a) Display only the first three columns of the dataframe.<\/h2>\n

(i) Sdf.loc[:, :2]
\n(ii) Sdf.loc[:, :-2]
\n(iii) Sdf.iloc[, :-2]
\n(iv) Sdf.iloc[:, :2]
\nAnswer:
\n(iii) Sdf.iloc[:, :-2]<\/p>\n

(b) Which of the following commands will given the output as shown below?<\/h2>\n\n\n\n\n\n
1. 5540<\/td>\n85<\/td>\n<\/tr>\n
2. 6889<\/td>\n92<\/td>\n<\/tr>\n
3. 6817<\/td>\n65<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(i) Sdf.loc[1:,: 2]
\n(ii) Sdf.loc[0 :2]
\n(iii) 5df.iloc[0:, :2]
\n(iv) Sdf.iloc[1:, :2]
\nAnswer:
\n(iv) Sdf.iloc[1:, :2)<\/p>\n

(c) The Principal wants to known the details of students who have scored at least 90% in the Final Marks percentage. Which of the following set of commands will yield the desired result?<\/h2>\n

(i) print (Sdf (‘Final’ >=90))
\n(ii) print(Sdf [Sdf[‘Final’] =*=90])
\n(iii) tmp = Sdf [Sdf [‘Final’] >=90] print(tmp)
\n(iv) Both (iii) and (iv)
\nAnswer:
\n(iv) Both (iii) and (iv)<\/p>\n

(d) The programmer wants to calculate how many students\u2019 details are stored in the dataframe. Which of the following commands will yield the number of records in each column of the dataframe?<\/h2>\n

(i) Sdf.count(axis = 1)
\n(ii) pandas.count(Sdf.columns)
\n(iii) Sdf.count( )
\n(iv) pandas.count(Sdf)
\nAnswer:
\n(iii) Sdf.count( ) .<\/p>\n

(e) What will the following statement yield? Sdf.Midterm>90<\/h2>\n

(i) 0 97 True
\n1 90 False
\n2 85 False
\n3 85 False<\/p>\n

(ii) 0 True
\n1 False
\n2 False
\n3 False<\/p>\n

(iii) 0 97
\n1 NaN
\n2 NaN
\n3 NaN<\/p>\n

(iv) Error<\/p>\n

Answer:
\n(ii) 0 True
\n1 False
\n2 False
\n3 False<\/p>\n

\"Case<\/p>\n

Case Study 11<\/span><\/p>\n

Consider the following dataframe ndf as show below:<\/p>\n\n\n\n\n\n\n\n
<\/td>\nColumn 1<\/td>\nColumn 2<\/td>\nColumn 3<\/td>\nRes<\/td>\n<\/tr>\n
T1<\/td>\n62.893165<\/td>\n100.0<\/td>\n60.00<\/td>\nTrue<\/td>\n<\/tr>\n
T2<\/td>\n94.734486<\/td>\n100.0<\/td>\n59.22<\/td>\nTrue<\/td>\n<\/tr>\n
T3<\/td>\n49.090140<\/td>\n100.0<\/td>\n46.04<\/td>\nFalse<\/td>\n<\/tr>\n
T4<\/td>\n38.487265<\/td>\n85.4<\/td>\n58.62<\/td>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Aswer questions from a. to e.:<\/p>\n

(i) Which of the below given commands will yield following output?<\/p>\n

(a) Which of the below given commands wiLt yield the following output?<\/h2>\n\n\n\n\n\n\n
<\/td>\nColumn1<\/td>\nColumn 2<\/td>\nColumn 3<\/td>\nRes<\/td>\n<\/tr>\n
T 2<\/td>\n94.734483<\/td>\n100.0<\/td>\n59.22<\/td>\nTrue<\/td>\n<\/tr>\n
T 3<\/td>\n49.090140<\/td>\n100.0<\/td>\n46.04<\/td>\nFalse<\/td>\n<\/tr>\n
T 4<\/td>\n38.487265<\/td>\n85.4<\/td>\n58.62<\/td>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

(i) print(ndf.iloc(‘T2’:, :])
\n(ii) print(ndf.at[‘T2’:, :])
\n(iii) print(ndf.loc[‘T2’:, :])
\n(iv) print(ndf.iat[‘T2’:, :])
\nAnswer:
\n(iii) print(ndf.loc[‘T2’:, :])<\/p>\n

(b) Predict the output produced by the following statement: Print(ndf.at[‘T3’, ‘Res’], ndf.atpT, ‘Column3’])<\/h2>\n

(i) False 60
\n(ii) T3\u00a0 49.090140\u00a0 100.0\u00a0 46.04\u00a0 False
\nT1\u00a0 \u00a062.893165\u00a0 \u00a0 \u00a0 100.0\u00a0 60.00
\n(iii) T3\u00a0 \u00a0 False\u00a0 \u00a0T1\u00a0 \u00a0 60.00
\n(iv)<\/p>\n\n\n\n\n\n\n
<\/td>\nColumn 1<\/td>\nColumn 2<\/td>\nColumn 3<\/td>\n<\/tr>\n
T 1<\/td>\n62.893165<\/td>\n100.0<\/td>\n60.00<\/td>\n<\/tr>\n
T 2<\/td>\n94.734483<\/td>\n100.0<\/td>\n59.22<\/td>\n<\/tr>\n
T 3<\/td>\n49.090140<\/td>\n100.0<\/td>\n46.04<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Answer:
\n(ii) T3\u00a0 49.090140\u00a0 \u00a0100.0\u00a0 \u00a0 \u00a046.04\u00a0 \u00a0 False
\nT1\u00a0 \u00a062.893165\u00a0 \u00a0 100.0\u00a0 \u00a0 \u00a060.00<\/p>\n

(c) Which command will delete the rows T2 and T3?<\/h2>\n

(i) ndf.drop(‘T2’, ‘T3’)
\n(ii) ndf.drop([‘T2’, ‘T3’])
\n(iii) ndf.drop([‘T2’, ‘T3’], axis = 1)
\n(iv) ndf.drop([‘T2’, ‘T3’], axis = 1)
\nAnswer:
\n(ii) ndf.drop([‘T2’, ‘T3’])<\/p>\n

(d) Which command will yield the maximum value from the column Column3?<\/h2>\n

(i) Panda5.max(ndf[‘Column3’])
\n(ii) max(ndf[‘Column3’])
\n(iii) ndf(ndf[\u2018Column3\u2019].max( )]
\n(iv) ndf[‘Column3’].max( )
\nAnswer:
\n(iv) ndf[‘Column3’].max( )<\/p>\n

(e) Which command will delete columns \u2018Column2\u2019 and \u2018Res\u2019?<\/h2>\n

(i) ndf.del ([‘Column2’, ‘Res’])
\n(ii) ndf.del ([‘Column2’, ‘Res’], axis = 1)
\n(iii) ndf.drop ([‘Column2’ ‘Res’])
\n(iv) ndf.drop ([‘Column2’, ‘Res’], axis = 1)
\nAnswer:
\n(iv) ndf.drop ([‘Column2’, ‘Res’], axis = 1)<\/p>\n

Case Study 12<\/span><\/p>\n

Given a data frame namely data as shown below (fruit names are row labels):<\/p>\n\n\n\n\n\n\n\n\n
<\/td>\nColor<\/td>\nCant<\/td>\nPrice<\/td>\n<\/tr>\n
Apple<\/td>\nRed<\/td>\n3<\/td>\n120<\/td>\n<\/tr>\n
Apple<\/td>\nGreen<\/td>\n9<\/td>\n110<\/td>\n<\/tr>\n
Pear<\/td>\nRed<\/td>\n25<\/td>\n125<\/td>\n<\/tr>\n
Pear<\/td>\nGreen<\/td>\n26<\/td>\n150<\/td>\n<\/tr>\n
Lime<\/td>\nGreen<\/td>\n99<\/td>\n70<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Answer questions from a. to e.<\/p>\n

(a) Which of the below given commands will yield the following output?<\/h2>\n

Price
\nApple 120
\nApple 110
\nPear 125
\nPear 150
\nLime 70<\/p>\n

(i) data.iloc[: 4, 2 :]
\n(ii) data.iloc[:, 2:]
\n(iii) data.loc[: 4, 2:]
\n(iv) data.loc[:, 2:]
\nAnswer:
\n(ii) data.iloc[:, 2:]<\/p>\n

\"Case<\/p>\n

(b) Find all rows with the label \u201cApple\u201d. Extract all columns. (Choose the correct statement)<\/h2>\n

(i) data.loc[:, ‘Apple’]
\n(ii) data.iloc[‘Apple’,:]
\n(iii) data.iloc[:, ‘Apple’]
\n(iv) data.loc[‘Apple’,:]
\nAnswer:
\n(iv) data.loc[‘Apple’ :]<\/p>\n

(c) List 2nd, 3rd and 4th rows. (Choose the correct statement).<\/h2>\n

(i) data.loc[0:3,:]
\n(ii) data.loc[:, 0:3]
\n(iii) data.iloc[0:3,:]
\n(iv) data.loc[:, 0:3]
\nAnswer:
\n(iii) data.iloc[0:3,:]<\/p>\n

(d) List the rows having price more than 120. (Choose the correct statement)<\/h2>\n

(i) data[[‘Price’] > 120]
\n(ii) data[data[‘Price’] > 120]
\n(iii) data[ [‘Price’] > 120]
\n(iv) data[[‘Price’] > 120]
\nAnswer:
\n(ii) data[data[\u2018Price\u2019] > 120]<\/p>\n

\"Case<\/p>\n

(e) List the fruit having the maximum price. (Choose the correct statement).<\/h2>\n

(i) data[‘Price’].max( )
\n(ii) data[data[‘Price’].max( )]
\n(iii) data[data[‘Price’].max( ) = True]
\n(iv) data[data[‘Price’] = data[‘Price’].max( )]
\nAnswer:
\n(iv) data[data[‘Price’] = data[‘Price’].max( )]<\/p>\n

Assertion-Reason Type Question uestions<\/span><\/p>\n

Directions: In the Questions given below, there are two statements marked as Assertion (A) and Reason (R). Read the statements and choose the correct option.
\n(a) Both (A) and (R) are true, and (R) is the correct explanation of (A).
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).
\n(c) (A) is true, but (R) is false.
\n(d) (A) is false, but (R) is true.<\/p>\n

Question 1.<\/p>\n

Assertion (A): Pandas is a popular data-science library of Python.
\nReason (R): A series is a Pandas data structure that represents.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 2.<\/p>\n

Assertion (A): A Data structure is a Pandas data structure that represents a 2D array like object.
\nReason (R): You can use numpy NaN for missing dat(a)<\/h2>\n

Answer:
\n(d) (A) is false, but (R) is true.<\/p>\n

Question 3.<\/p>\n

Assertion (A): To specify datatype for a series object, dtype argument is use(d)
\nReason (R): The len( ) function on series object returns total elements in it including NaNs.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 4.<\/p>\n

Assertion (A): The count() function on series object returns only the count of non-NaN values in it.
\nReason (R): Series is value mutable.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 5.<\/p>\n

Assertion (A): Series is not size mutable.
\nReason (R): Dataframe is size mutable as well as value mutable.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 6.<\/p>\n

Assertion (A): In a dataframe, Axis = 1 represents the column elements.
\nReason (R): To access values using row labels you can use DF.open.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 7.<\/p>\n

Assertion (A): To access individual value, you can use DF on using row\/column index labels.
\nReason (R): To access individual value, you can use DF. lat using row\/column integer position.<\/h2>\n

Answer:
\n(d) (A) is false, but (R) is true.<\/p>\n

\"MCQ<\/p>\n

Question 8.<\/p>\n

Assertion (A): The rename( ) function requires inplace argument to make changes in the original dataframe.
\nReason (R): To access values using row labels you can use DF. lo(c)<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

\"MCQ<\/p>\n

Question 9.<\/p>\n

Assertion (A): A Pandas series object can be thought of as a column or a row, essentially.
\nReason (R): Both series and dataframe are one-dimensional data structure objects.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 10.<\/p>\n

Assertion (A): While series is a one-dimensional data structure object, dataframe is a multi-dimensional data structure object.
\nReason (R): A series object is value mutable.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 11.<\/p>\n

Assertion (A): A series object is size mutable.
\nReason (R): A dataframe value mutable.<\/h2>\n

Answer:
\n(d) (A) is false, but (R) is true.<\/p>\n

Question 12.<\/p>\n

Assertion (A): A dataframe object is size mutable.
\nReason (R): There is no difference between NumPy array and a series object.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 13.<\/p>\n

Assertion (A): A dataframe can be thought of as a group of : multiple series objects.
\nReason (R): A dataframe has similar properties as a series object.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 14.<\/p>\n

Assertion (A): In a dataframe, Axis = 1 represents the ; column elements.
\nReason (R): To access values using row labels you can use : DF.open.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 15.<\/p>\n

Assertion (A): A series object can store only homogeneous ; (same type of) elements. :
\nReason (R): A dataframe object can store only homogeneous ; elements.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 16.<\/p>\n

Assertion (A): The del statement can remove the rows as j well as columns in a dataframe.
\nReason (R): A Pandas series object can be thought of as a ; column or a row, essentially.<\/h2>\n

Answer:
\n(d) (A) is false, but (R) is true.<\/p>\n

Question 17.<\/p>\n

Assertion (A): The rename() always makes changes in the default dataframe.
\nReason (R): While series is a one-dimensional data structure object, dataframe is a multi-dimensional data structure object.<\/h2>\n

Answer:
\n(d) (A) is false, but (R) is true.<\/p>\n

Question 18.<\/p>\n

Assertion (A): A series object is value mutable.
\nReason (R): A series object can store only homogeneous (same type of) elements.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 19.<\/p>\n

Assertion (A): To create an empty Series object,you can use : (d)Series(). :
\nReason (R): To specify datatype intl6 for a Series object, : you can write p(d)Series(data = array, dtype = numpy.int 16).<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 20.<\/p>\n

Assertion (A): To get the number of dimensions of a series object, ndim attribute is displaye(d) :
\nReason (R): To get the size of the datatype of the items in series object, you can display index attribute.<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 21.<\/p>\n

Assertion (A): To get the number of elements in a series : object, size attribute may be used
\nReason (R): To get the number of bytes of the series data,\u00a0 dtype attribute is displaye(d)<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

\"MCQ<\/p>\n

Question 22.<\/p>\n

Assertion (A): To check if the series object contains NaN j values, hasnans attribute is displaye(d) ;
\nReason (R): To display third element of a series object S, you will write S[2].<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 23.<\/p>\n

Assertion (A): To display first three elements of a series object S.you may write S[:3].
\nReason (R):To display last five rows of a series object S. you may write head( ).<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 24.<\/p>\n

Assertion (A): Missing data in Pandas object is represented through NaN.
\nReason (R): Given a Pandas series called Sequences, the command which will display the first 4 rows is print(Sequences.head(4)).<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 25.<\/p>\n

Assertion (A): If a dataframe is created using a 2D dictionary, then the indexes\/row labels are formed from inner dictionary\u2019s keys.
\nReason (R): If a dataframe is created using a 2D dictionary, then the column labels are formed from outer dictionary’s keys.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 26.<\/p>\n

Assertion (A): The axis 0 identifies a dataframe’s rows.
\nReason (R):The axis 1 identifies a dataframe\u2019s columns.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

Question 27.<\/p>\n

Assertion (A): To get the number of elements in a dataframe, size attribute may be used
\nReason (R): To get NumPy representation of a dataframe, shape attribute may be use)<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 28.<\/p>\n

Assertion (A): 18. To get NumPy representation of a dataframe, values attribute may be used
\nReason (R): To get a number representing number of axes in a dataframe, values attribute may be used<\/h2>\n

Answer:
\n(c) (A) is true, but (R) is false.<\/p>\n

Question 29.<\/p>\n

Assertion (A): To get the transpose of a dataframe Dl, you can write Dl.T.
\nReason (R): To extract row\/column from a dataframe, loc( ) function may be used<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

\"MCQ<\/p>\n

Question 30.<\/p>\n

Assertion (A): To display the 3rd<\/sup>, 4th<\/sup> and 5th<\/sup> columns from the 6th to 9th rows of a dataframe DF, you can write DF.iloc[6:10,3:6].
\nReason (R): To change the 5th column\u2019s value at 3rd row as 35 in dataframe DF.you can write DF.iat[3,5] = 35.<\/h2>\n

Answer:
\n(b) Both (A) and (R) are true, but (R) is not correct explanation of (A).<\/p>\n

MCQ Questions for Class 12 Informatics Practices with Answers<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"

Python Pandas Class 12 Case Based MCQ Questions Case Study 1 Pandas Data Structure: A data structure is a particular way of storing and organising data in a computer to suit a specific purpose so that it can be accessed and worked with in appropriate ways. Pandas offer many data structures to handle a variety …<\/p>\n

Case Based MCQ Questions for Class 12 Informatics Practices – Python Pandas<\/span> Read More »<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","spay_email":""},"categories":[35],"tags":[],"yoast_head":"\nCase Based MCQ Questions for Class 12 Informatics Practices - Python Pandas - MCQ Questions<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Case Based MCQ Questions for Class 12 Informatics Practices - Python Pandas - MCQ Questions\" \/>\n<meta property=\"og:description\" content=\"Python Pandas Class 12 Case Based MCQ Questions Case Study 1 Pandas Data Structure: A data structure is a particular way of storing and organising data in a computer to suit a specific purpose so that it can be accessed and worked with in appropriate ways. Pandas offer many data structures to handle a variety … Case Based MCQ Questions for Class 12 Informatics Practices – Python Pandas Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/\" \/>\n<meta property=\"og:site_name\" content=\"MCQ Questions\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/NCERTSolutionsGuru\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-18T13:17:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-19T05:20:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mcq-questions.com\/wp-content\/uploads\/2022\/01\/MCQ-Questions.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ncertsolguru\" \/>\n<meta name=\"twitter:site\" content=\"@ncertsolguru\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Veer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"22 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mcq-questions.com\/#website\",\"url\":\"https:\/\/mcq-questions.com\/\",\"name\":\"MCQ Questions\",\"description\":\"MCQ Questions for Class 1 to 12\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mcq-questions.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/mcq-questions.com\/wp-content\/uploads\/2022\/01\/MCQ-Questions.png?fit=159%2C13&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/mcq-questions.com\/wp-content\/uploads\/2022\/01\/MCQ-Questions.png?fit=159%2C13&ssl=1\",\"width\":159,\"height\":13,\"caption\":\"MCQ Questions\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#webpage\",\"url\":\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/\",\"name\":\"Case Based MCQ Questions for Class 12 Informatics Practices - Python Pandas - MCQ Questions\",\"isPartOf\":{\"@id\":\"https:\/\/mcq-questions.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#primaryimage\"},\"datePublished\":\"2022-02-18T13:17:14+00:00\",\"dateModified\":\"2022-02-19T05:20:09+00:00\",\"author\":{\"@id\":\"https:\/\/mcq-questions.com\/#\/schema\/person\/c5c20c91e6be9842cd2473670c248fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mcq-questions.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Case Based MCQ Questions for Class 12 Informatics Practices – Python Pandas\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mcq-questions.com\/#\/schema\/person\/c5c20c91e6be9842cd2473670c248fce\",\"name\":\"Veer\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/mcq-questions.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93ba5dedf76e89af65ae2e1d6ac09855?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/93ba5dedf76e89af65ae2e1d6ac09855?s=96&d=mm&r=g\",\"caption\":\"Veer\"},\"url\":\"https:\/\/mcq-questions.com\/author\/veerendra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Case Based MCQ Questions for Class 12 Informatics Practices - Python Pandas - MCQ Questions","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/","og_locale":"en_US","og_type":"article","og_title":"Case Based MCQ Questions for Class 12 Informatics Practices - Python Pandas - MCQ Questions","og_description":"Python Pandas Class 12 Case Based MCQ Questions Case Study 1 Pandas Data Structure: A data structure is a particular way of storing and organising data in a computer to suit a specific purpose so that it can be accessed and worked with in appropriate ways. Pandas offer many data structures to handle a variety … Case Based MCQ Questions for Class 12 Informatics Practices – Python Pandas Read More »","og_url":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/","og_site_name":"MCQ Questions","article_publisher":"https:\/\/www.facebook.com\/NCERTSolutionsGuru\/","article_published_time":"2022-02-18T13:17:14+00:00","article_modified_time":"2022-02-19T05:20:09+00:00","og_image":[{"url":"https:\/\/mcq-questions.com\/wp-content\/uploads\/2022\/01\/MCQ-Questions.png"}],"twitter_card":"summary_large_image","twitter_creator":"@ncertsolguru","twitter_site":"@ncertsolguru","twitter_misc":{"Written by":"Veer","Est. reading time":"22 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/mcq-questions.com\/#website","url":"https:\/\/mcq-questions.com\/","name":"MCQ Questions","description":"MCQ Questions for Class 1 to 12","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mcq-questions.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/mcq-questions.com\/wp-content\/uploads\/2022\/01\/MCQ-Questions.png?fit=159%2C13&ssl=1","contentUrl":"https:\/\/i0.wp.com\/mcq-questions.com\/wp-content\/uploads\/2022\/01\/MCQ-Questions.png?fit=159%2C13&ssl=1","width":159,"height":13,"caption":"MCQ Questions"},{"@type":"WebPage","@id":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#webpage","url":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/","name":"Case Based MCQ Questions for Class 12 Informatics Practices - Python Pandas - MCQ Questions","isPartOf":{"@id":"https:\/\/mcq-questions.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#primaryimage"},"datePublished":"2022-02-18T13:17:14+00:00","dateModified":"2022-02-19T05:20:09+00:00","author":{"@id":"https:\/\/mcq-questions.com\/#\/schema\/person\/c5c20c91e6be9842cd2473670c248fce"},"breadcrumb":{"@id":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mcq-questions.com\/case-based-mcq-questions-for-class-12-informatics-practices-python-pandas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mcq-questions.com\/"},{"@type":"ListItem","position":2,"name":"Case Based MCQ Questions for Class 12 Informatics Practices – Python Pandas"}]},{"@type":"Person","@id":"https:\/\/mcq-questions.com\/#\/schema\/person\/c5c20c91e6be9842cd2473670c248fce","name":"Veer","image":{"@type":"ImageObject","@id":"https:\/\/mcq-questions.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/93ba5dedf76e89af65ae2e1d6ac09855?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93ba5dedf76e89af65ae2e1d6ac09855?s=96&d=mm&r=g","caption":"Veer"},"url":"https:\/\/mcq-questions.com\/author\/veerendra\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/posts\/37391"}],"collection":[{"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/comments?post=37391"}],"version-history":[{"count":11,"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/posts\/37391\/revisions"}],"predecessor-version":[{"id":37439,"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/posts\/37391\/revisions\/37439"}],"wp:attachment":[{"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/media?parent=37391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/categories?post=37391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mcq-questions.com\/wp-json\/wp\/v2\/tags?post=37391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}