Class 11 IP Chapter 11 Back Exercise Part B Solutions Sumita Arora New Syllabus / Listing11IPSA, Uncategorized / By Neha 3. From the dataframes created in previous question, write code to ...click here for answer 1. What advantages does dataframe offer over series datastructure ? If you have similar data stored in multiple series and a single dataframe, which one would you prefer and why ? ...click here for answer 2. Given : ...click here for answer 4. Predict the output of following code (it uses above given dictionary my_di) ...click here for answer 5. Consider the same dictionary my_di in previous question, what will be the output produced by following code ? ...click here for answer 7. Assume that required libraries (panda and numpy) are imported and dataframe df2 has been created as per questions 4 and 5 above. Predict the output of following code fragment : df2["IQ"] = ...click here for answer 6. Assume that required libraries (panda and numpy) are imported and dataframe df2 has been created as per questions 4 and 5 above. Predict the output of following code fragment : print(df2["weight"]) print(df2.weight[’Tim’]) ...click here for answer 8. Assume that required libraries (pandas and numpy) are imported and dataframe df2 has been created as per questions 4 and 5 above. Predict the output produced by following code fragment : df2["College"] = ...click here for answer 9. Assume that required libraries (pandas and numpy) are imported and dataframe df2 has been created as per questions 4 and 5 above. Predict the output produced by following code fragment : print(df2.loc["Jiya"]) print(df2.loc ...click here for answer 10. Assume that required libraries (panda and numpy) are imported and dataframe df2 has been created as per questions 4 and 5 above. Predict the output produced by following code fragment : print(df2[df2["age"] > ...click here for answer 11. What will be the output produced by following code ? ...click here for answer 12. Predict the output of the script given below: ...click here for answer 13. Predict the output of the script given below : ...click here for answer 14. Why does following code cause error ? import pandas ...click here for answer 15. Given the two dataframes as : ...click here for answer 16. Four series objects Tempi, Temp2, Temp3 and Temp4 store the temperatures of week1, week2, week3 and week4 respectively. Create a dataframe from these four series objects where the indexes should be ‘Sunday’, ‘Monday’, … , ‘Saturday’, and columns should be ‘Week1’, ‘Week2’, ‘Week3’ and ‘Week4’. import pandas ...click here for answer 17. From the dataframe object created in previous question, write a script to calculate : ...click here for answer 18. What will the output produced by following code considering a dataframe object mem whose contents are shown below : ...click here for answer 19. Consider following code that creates two dataframes : import pandas ...click here for answer 20. Consider the orel and ore2 dataframes given in previous questions. What will the result produced by following statements ? ...click here for answer 21. Consider following dataframes, namely Sprices1 and Sprice2 storing prices closing 1 year apart. ...click here for answer