IP Practicals Filed
IP Practicals Filed
Series
Dataframes
Matplotlib
1. Plot the following data on a line chart and customize the chart according to the
below-given instructions:
Write a title for the chart “The Monthly Sales Report“
Write the appropriate titles of both the axes
Write code to Display legends
Display blue color for the line
Use the line style – dashed
Display diamond style markers on data points
2. Create the following data frame and plot the line chart for the same :
Months Sales2010
January 75000
February 80000
March 85000
April 62000
May 45000
June 60000
3. Write suitable Python code to create 'Favourite Hobby' Bar Chart as shown below:
Also give suitable python statement to save this chart.
5. Write a python program to plot a line chart based on the given data to depict the
changing weekly average temperature in Delhi for four weeks.
Week=[1,2,3,4]
Avg_week_temp=[40,42,38,44]
6. Write a Python program to display a bar chart of the number of students in a school.
Use different colours for each bar. Sample data:
Class: I,II,III,IV,V,VI,VII,VIII,IX,X
Strength: 38,30,45,49,37,53,48,44,36,46
SQL