0% found this document useful (0 votes)
11 views4 pages

English Programs

Helping hands to you

Uploaded by

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

English Programs

Helping hands to you

Uploaded by

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

List of programs for practical file

1. Write Python program to create a pandas series to store 5 student’s


percentage using dictionary and print all the elements that are above 75
percentage.
2. Write a python program to create a series object that stores the initial
budget allocated(70000 /- each) for the four quarters of the year Wtr1,
Qtr2, Qtr3, Qtr4.
3. Write a python program to create a series object that stores the employee
name as index and salary as value.
4. A series object trdata consists of around 2000 rows of data. Write a
program to print the following details:
i) First 200 rows of data ii) last 100 rows of data
5. Write a program to create a data series and sort the values of the series
object in ascending order of its values.
6. Write program to perform the following mathematical operations on two
series objects. I) Addition ii) subtraction iii) Multiplication iv) Division
7. Write a program to create a Series using list of marks of 15 students and
display ist 5 student’s marks and last 3 student’s marks from series object.
8. Write a program to create a panda’s dataframe for the following table:

Name Age
Stud1 Shivam 21
Stud2 Pankaj 23
Stud3 Vikas 22

9. Given a DataFrame df :

Name Age Weight


0 15 Arnav 42
1 22 Charles 75
2 35 Ankita 66

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.

St_name Degree Percentage


0 Kunisha MBA 80
1 Sahib MCA 85
2 Kabir M.Ed 95
4 Rudra M.Sc 76
5 Shaurya MCA 84

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’ :

Empid Name Gender Age Dept DOJ Salary City


1 Manoj M 25 Sales 2015- 25000 Chennai
06-08
2 Sushm F 29 Marketin 2015- 25000 Chennai
a g 09-26
3 Seema F 27 Finance 2018- 22000 Bangalor
08-09 e
4 Suman F 31 Sales 2014- 30000 Mumbai
03-23
5 Arun M 28 Marketin 2020- 18000 Null
g 04-23
6 Pravee M 26 Null 2017- 27000 Bangalor
n 02-24 e
7 Manish M 32 Finance 2014- 25000 Goa
05-06

a) create a database name School.


b) create the above table name Employee.
c) insert data into the table.
d) list names of employees in descending order.
e) calculate and display minimum and maximum salary of Employees
f) display sum of salary of employees grouped by department wise.

21. Write SQL queries for the following questions based on the given
table ‘STU’:

Rollno Name Gender Age Dept DOA Percentag


e
1 Arun M 16 CS 2010-01- 97.8
10
2 Ankit M 17 IP 2012-06- 95.2
24
3 Anu F 15 Hindi 2011-02- 81
12
4 Bala F 17 IP 2015-07- 75.5
01
5 Charan M 17 Hindi 2015-06- 92.1
27
6 Deepa F 16 History 2014-06- 60.5
27
7 Dinesh M 15 CS 2012-08- 82
25

a) Display square of age of all male students.


b) Display student name and percentage in round figure.
c) Display department names in lower case letter.
d) Display department names and its respective number of characters in dept
column.
e) Display first 2 characters of the column Name.
f) Display names of all students and extract 5 characters from the 3 rd position
of the name field.
g) Select name, month(DOA) from student.
h) Display joining year of IP students.
i) Display name of students who joined in the month of June.

You might also like