IP Practical File XII CBSE Suryadatta National School Bhavika Rakesh Roll No. 072
IP Practical File XII CBSE Suryadatta National School Bhavika Rakesh Roll No. 072
Bhavika Rakesh
1. Write a program that create Series from ndArray. Print all values in the Series
using loop and also print the sliced values from the Series.
output :
2. Write a program that create reads marks in Series and prints the finds average of
marks.
Code along with output :
3. Create a Data Frame quarterly sales where each row contains the item category,
item name, and expenditure. Group the rows by the category and print the total
expenditure per category. (Read 3 values for each category. Total category should
be 4).
Output:
4. Create a data frame for examination result and display row labels, column labels
data types of each column and the dimensions.
Output:
Output :
6. Create a DataFrame that reads Employee Data (Employee No, Name, Address,
Date of Joining, Salary) from CSV File and displays the details.
code and output:
Write commands to :
a) Write command to calculate minimum value for each of the row from subset of
dataframe that contains age, weight, height, runsscored
b) Write command to calculate mean for last 3 rows.
code:
output:
output :
10. Read the subjects and marks/grades for different subject of Class 12 and plot
column chart on that. Also display title, x-axis and y-axis labels.
Output:
11. Read data from open source (e.g. data.gov.in), aggregate and summarize it.
Then plot it using different plotting functions of the Matplotlib library.
Data used :
Output :
12. Draw the histogram based on the Production of Corn in different Years
'Year':2003,2005,2007,2009,2011,2013,2015,2017,2019,2021
'Production': 7,4,9,19,23,4,16,8,6,25
code:
plot:
13. Observe the given data for Football Players and their goals scored in the
matches. Plot them on the bar chart.
plot:
14. Consider the data given below for creating bar and line chart
a) Create a bar chart to distribution of rainfall from June to Nov for all zones. b)
Create line chart to observe any trends from June to Nov.
Output:
15. Write a program in Python Pandas to create the following DataFrame ‘Library’.
Output :