4.write The Output of The Following Code
4.write The Output of The Following Code
4.write The Output of The Following Code
065-INFORMATICS PRACTICES
DATA HANDLING USING PANDAS AND DATA VISUALIZATION
CYCLE TEST- 2
GRADE : 12 (BIO/IP) MAX MARKS : 20
He is trying to write a code to plot the graph. Help Mr. Vijay to fill in the blanks of the
code and get the desired output.
import ________________ as plt #Statement 1
apps=["Arogya Setu","WPS Office","Cam Scanner","WhatsApp","Telegram"]
ps_rating=[3.9,4.5,4.6,4.2,4.3]
plt.__________(apps,ps_rating,color='m',label=”App Rating”) #Statement 2
plt.xlabel("Apps")
plt._____________("Rating") #Statement 3
plt._________ #Statement 4
plt.________ #Statement 5
i) Write the appropriate statement for #statement 1 to import the module.
ii) Write the function name and label name as displayed in the output for #statement 2
and #statement 3 respectively.
iii) Which word should be used for #statement 3?
iv) Write appropriate method names for #Statement 4 to display legends and
#Statement 5 to open the figure.