NumPy assignment
NumPy assignment
NumPy-Based Questions
Matplotlib-Based Questions
7. Data Visualization:
o Create a line plot showing the growth of a company's revenue over the last 12
months.
Add labels, title, and legend to the plot.
Highlight the month with the maximum revenue using an annotation.
o Generate random data for students' test scores in two subjects (e.g., Math and
Science).
Plot a histogram of scores for each subject.
Create a scatter plot to analyze the correlation between Math and
Science scores. Add a trendline.
10. Weather Data Analysis:
o Generate a mock dataset for daily temperatures over a month using NumPy.
o Create a Pandas DataFrame with columns Day, Temperature, and Humidity.
o Perform the following:
Identify the day with the highest temperature.
Calculate the average temperature and humidity.