Page 321 - Ai_V3.0_c11_flipbook
P. 321
days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
'Sunday']
hours = [5, 4, 7, 3, 8, 9, 10]
# Create bar chart
plt.bar(days, hours, color='blue')
# Add title and labels
plt.title('Netflix Viewing Hours per Day')
plt.xlabel('Day')
plt.ylabel('Number of Hours')
plt.xticks(rotation=45)
# Show plot
plt.show()
Refer the above codes through this link or scan the QR code
https://colab.research.google.com/drive/1Pp4u5Oh4y_J0YkZTG_GlUMrgOVHRkruG?usp=sharing
Answers
Exercise (Section A)
A. 1. b 2. d 3. c 4. b 5. b 6. d 7. d 8. a 9. b 10. d
11. c 12. b 13. c 14. d 15. b
B. 1. Matplotlib 2. primary, secondary 3. Satellite Data Tracking 4. Statistical analysis
5. one another 6. larger 7. DataFrame 8. Normalisation
C. 1. True 2. True 3. False 4. False 5. True
6. True 7. True 8. False
Data Literacy—Data Collection to Data Analysis 319

