Pandas Quiz 12 Share with others Welcome to your Pandas Quiz 12 Name Email School Name Q111. Anshuman wants to create a series named 'S1'. He has written the following codes. His friend Shubham checked the code and said that one of the code given below is not working. As a friend of Anshuman, help him to find the incorrect code. S1=pd.Series(data=[11, 12, 5, 6,9],index=[1,2,3,4,5]) S1=pd.Series([11, 12, 5, 6,9],index=[1,2,3,4,5]) S1=pd.Series([11, 12, 5, 6,9],[1,2,3,4,5]) S1=pd.Series(data=[11, 12, 5, 6,9], [1,2,3,4,5]) None Q112. Sonal is a class XII student. She is learning "Series" in Python. She is confused in "parameter of Series( ) function". Help her to find the incorrect parameter. data index number dtype None Q113. Roshan has written few points about iloc( ) function of Series in Python. His friend Suman told that one of the written statement is not correct. Help him to find the incorrect statement. In iloc( ) method, we have to pass an integer index. This method include the last element of the range passed. S1.iloc[3] will display fourth value of Series 'S1' S1.iloc[:3] will display first three values of Series 'S1' None Q114. print(S1[-1]) will return _______________ #'S1' is a series last element of series 'S1' first element of series 'S1' Key Error all elements of series 'S1' None Q115. >>> S1[1:3] = 50 will update the value of ___________ elements 1 2 3 4 None Q116. _____________ statement will assigns a name to the Series 'S1' >>>S1.name = "Empl" >>>S1_name = "Empl" >>>S1[name] = "Empl" >>>S1.indexname = "Empl" None Q117. Write the output of the following: import pandas as pdS1=pd.Series(data=[11, 12, None, 6,9,7],index=[1,12,3,4,2,4])print(S1.count()) 4 6 5 Error None Q118. While performing mathematical operations on series, index matching is implemented and all missing values are filled in with ____________ by default NaN None 0 1 None Q119. Mr. Kumar is working in an IT company. He stored the salaries of all the employees of January month in Series 'Jan_Sal' and salaries of February month in Series 'Feb_Sal'. Now he wants to add the salaries of both months. He has written the following statement. Identify the correct one. print(Feb_Sal + Jan_Sal) print(Feb_Sal_add_Jan_Sal) print(Feb_Sal plus Jan_Sal) None of the above None Q120. Which of the following method is used to subtract the two series? subtract( ) subtraction( ) diff( ) sub( ) None Time's upTime is Up! Related Share with others