English Programs
English Programs
Name Age
Stud1 Shivam 21
Stud2 Pankaj 23
Stud3 Vikas 22
9. Given a DataFrame df :
Write a program to display only the weight of first and third rows.
10. Write a program to create pandas dataframe DF for the above table
and perform the following operations :
i) Insert a new column gender with values as [‘m’,’m’,’f’]
ii) Delete the row details of 2 from DF.
11. Write a program to create a pandas dataframe called df for the
following table using dictionary of list and display the details of students
whose percentage is more than 85.
12. Write a program to create pandas dataframe Student for the above
table and demonstrate iterrows and iteritems.
13. Create a DataFrame of your own choice taking some negative values
also. Write a program to replace all negative values by 0.
14. Write a python program to create a dataframe using dictionary of list
and display the following attributes of the dataframe : i) index ii) column
ii) axes iv) dimention
15. Write a python program to store the details of Employees such as
Employee number, name, salary into Employee.csv file. Also write a code
to read all the details from the csv file.
16. Write a python program to plot a line chart to depict the changing
weekly tomato and cabbage prices for 5 weeks. Also give appropriate
axes label, title and keep marker style as diamond and marker edge color
as ‘red’ for tomato.
17. Write a python program to create a dataframe for subject wise
average, save it to a CSV file. Draw a barchart with a width of each bar as
0.25. Specify different color of each bar with proper title and axes label.
18. Write a program to plot a multiple bar chart from CSV file for subject
wise scores of class A, class B and class C. Give approprite label, title and
color represent each chart and subjects.
19. Prof. Anupam is doing some research in tne field of Environment. For
some plotting purposes, he has generated some data as :
Mu=100
Sigma=15
X=mu+sigma*numpy.random.randn(10000)
Write a program to plot this data on a horizontal histogram with this data.
20. Write SQL queries for the following questions based on the given
table ‘EMPLOYEE’ :
21. Write SQL queries for the following questions based on the given
table ‘STU’: