0% found this document useful (0 votes)
2 views

Lab Work Matplot

The document outlines a series of tasks involving data analysis and visualization using Python libraries such as pandas and matplotlib. It includes calculating average monthly temperatures from a CSV file, plotting a quadratic function with specific customizations, creating a bar chart for student scores, and generating a scatter plot from random data points. Each task emphasizes data manipulation and graphical representation.

Uploaded by

Deepak Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lab Work Matplot

The document outlines a series of tasks involving data analysis and visualization using Python libraries such as pandas and matplotlib. It includes calculating average monthly temperatures from a CSV file, plotting a quadratic function with specific customizations, creating a bar chart for student scores, and generating a scatter plot from random data points. Each task emphasizes data manipulation and graphical representation.

Uploaded by

Deepak Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1 Read a CSV file containing daily weather data (e.g., temperature, humidity, rainfall).

Use
pandas to perform the following:
• Calculate the average temperature for each month.
Plot a line graph of the daily temperature over time using matplotlib.

2 Plot a graph of y = x^2 for x values from 0 to 10. Customize the graph with the following
features:

• Set the title as "Quadratic Function"

• Label the x-axis as "x" and the y-axis as "y"

• Change the line color to red and line style to dashed.

3 Given the list of students' names ["Alice", "Bob", "Charlie", "David"] and their
corresponding scores [85, 92, 78, 90], plot a bar chart to represent the scores of each
student.

4 Write a Python program that generates random x and y data points using numpy and
creates a scatter plot using matplotlib.

You might also like