This document contains a list of 26 programming tasks related to data handling, visualization, importing/exporting CSV files, and data management using SQL. The tasks involve working with Series, DataFrames, plotting various charts, reading and writing CSV files, and writing SQL queries. Common tasks include creating DataFrames from data, extracting and manipulating data, plotting different chart types, and importing/exporting data to and from files. The programming tasks cover a wide range of skills for working with data in Python.
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 ratings0% found this document useful (0 votes)
74 views2 pages
I.P Record File List
This document contains a list of 26 programming tasks related to data handling, visualization, importing/exporting CSV files, and data management using SQL. The tasks involve working with Series, DataFrames, plotting various charts, reading and writing CSV files, and writing SQL queries. Common tasks include creating DataFrames from data, extracting and manipulating data, plotting different chart types, and importing/exporting data to and from files. The programming tasks cover a wide range of skills for working with data in Python.
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/ 2
SHRI L.G.
HARIA MULTIPURPOSE SCHOOL
INFORMATICS PRACTICES (065) PRACTICAL/RECORD FILE PROGRAMS 2022 – 23 NO. PROGRAM LIST DATE SIGN DATA HANDLING Consider the two Series objects s11 and s12. Print the attributes like dtype, shape, nbytes, ndim, 1 hasnans and empty of both these objects in the report form. Object1 Population stores the details of population in four metro cities of India and Object2 2 AvgIncome stores the total average income reported in previous year in each of these metros. Calculate income per capita for each of these metro cities. Series object s11 stores the charity contribution made by each section. Write a program to display 3 which sections made a contribution more than 5500 rupees. Write a program to create a Dataframe to store weight, age and names of 3 people. Print the 4 Dataframe and its Transpose. Given a dataframe namely aid that stores the aid by NGOs for different states. 5 Write a program to display the aid for (i) Books and Uniform only (ii) Shoes only Consider the following dataframe saleDf. Write a program to add a column namely Orders having 6 values 6000,6700,6200,6000 respectively for the zones A, B, C and D. The program should also add a new row zone ZoneE. Add some dummy values in this row. 7 Using iterrows() to extract data from dataframe row wise 8 Using iterrows() to extract data from dataframe row wise Series objects 9 Using iteritems() to extract data from dataframe column wise 10 Using iteritems() to extract data from dataframe column wise Series objects Given two Dataframes storing points of a 2-player teams in four rounds, write a program to 11 calculate average points obtained by each player in each round DATA VISUALIZATION Tanushree is doing some research. She has a stored line of Pascal’s triangle number as ar2 as given. Ar2=[1,7,21,35,35,21,7,1] She wants to plot the sine, cosine and tangents values for the same 12 array(ar2). She wants cyan color for sine plot line, red color for cosine plot line and the black color for tangent plot line. Also, the tangent line should be dashed. Given a series nfib that contains reversed Fibonacci numbers with Fibonacci numbers as show [0,- 1,-1,-2,-3,-5,-8,-21,-34,0,1,1,2,3,5,8,13,21,34]. Write a program to plot nfib with the following 13 specifications: 1. The line color should be magenta, 2. The marker edge color should be black with size 5, 3. Grid should be displayed. Write a program to plot bar chart from the medals won by Australia. In the same chart, plot medals 14 won by India too. Write a program to plot bar chart from the medals won by India. Make sure that the Gold, Silver, 15 Bronze and total tally is represented through different colours. Val is a list having three lists inside it. It contains summarised data of three different trials 16 conducted by company A. Create a bar chart that plots these sub lists of Val in a single chart. Keep the width of each bar as 0.25 Write a program to plot a bar chart from the medals won by top four countries. Make sure that bars 17 are separately visible. Consider the TSS school collection for charity of previous example. Write a program to plot the 18 collected amount vs. days using bar chart. The ticks on X-axis should have Day names. The graph should have proper title and axes titles. Create multiple line charts on common plot where three data ranges are plotted on same chart. The 19 data range(s) to be plotted is/are: Data=[[5,25,45,20],[8,13,29,27],[9,29,27,39]] A Survey gathers height and weight of 100 participants and recorded the participant’s age. Write a 20 program to plot a histogram from surv+10+ey with 20 bins. Prof. Awasthi is doing some research in the field of Environment. For some plotting purposes, he 21 has generated some data. Write a program to plot this data on a bar-stacked horizontal histogram with both x and y axes. IMPORTING/ EXPORTING DATA IN CSV Write a program to read from a CSV file Employee.csv and create a dataframe from it but dataframe 22 should not use file’s column header rather should use own column numbers as 0, 1, 2 and so on. Write a program to read from a CSV file Employee.csv and create a dataframe from it. Use Empno 23 column as index labels. Write a program to read from sports.csv and plot its competitions column against sport column in 24 form a line chart. 25 Write a program to store the allDf dataframe in file alln.csv, with a separator character ‘|’. DATA MANAGEMENT 26 MySQL 25 QUERIES