DOC-20240202-WA0003.
DOC-20240202-WA0003.
PART= A
Pandas and Data Visualization 8
1
a. Write a program in Python to create the following dataframe named as ‘studentDF' storing the
details of Student given below and display it. 3
Student
SNAME STYPE DOB FEES STREAM
101 Sonia Captain 2007-04-12 60000 Science
102 Kavita Captain 2006-06-08 35000 Commerce
103 Babita Vicecaptain 2006-10-15 80000 Science
104 Namit Head 2007-09-30 125000 Arts
105 Sunita Captain 2006-11-10 25000 Arts
106 Arshi Vicecaptain 2007-08-17 40000 Arts
b.Write Python code to perform the following operations on the above dataframe ‘StudentDF.
1. Insert a new column “CLASS” with data as [XI,XII,XII,XI,XII,XI] ½
2. Display the data of columns SNAME andFEES. ½
3. Display last 3 rows of the above dataframe ½
4. Remove the column ‘’STREAM”. ½
c.Plot a Line Chart between Sname and Fees with suitable title and labels on x-axis and y-axis 3
PART-B
7
SQL Queries
2 Consider the above table as “Student” and first column as ‘StuId’ and Answer the following SQL queries.
i. Display StuId, Name and stream of all the employees whose fees is more than 50000. 1
ii. Display the number of students and total fees in each Stream with their stream. 1
iii. Display the stream and highest fees in each Stream that stream has more than one student. 1
iv. Display the details of all students in descending order of their Fees. 1
v. Display the different stream type of the students in uppercase. 1
vi. Display the Name of those students having ‘ita’ anywhere in their name. 1
vii. Display Student name and dayname of their date of Birth. 1
3 Practical File 5
4 Project Work 5
5 Viva Voce 5
Examiner No-
Examiner no.
Set-B
PART= A
Pandas and Data Visualization 8
1
a. Write a program in Python to create the following dataframe named as ‘FacultyDF storing the 3
details of Faculty given below and display it.
PART-B
7
SQL Queries
2 Consider the above table as “Faculty” and first column as ‘FacId’ and Answer the following SQL queries.
I. Display FacultyId, Name and Subject of all Faculties taking periods more than 25. 1
II. Display Subject with number of Faculties in each Subject. 1
III. Display the Subjects wise maximum and minimum teaching experience. 1
IV. Display the FactId and Faculty name in descending order of periods they take. 1
V. Display the different Subjects in lowercase. 1
VI. Display the Name of Faculty whose name start with ‘R’. 1
VII. Display Faculty name and month name of their joining. 1
3 Practical File 5
4 Project Work 5
5 Viva Voce 5
Examiner No-
Examiner no.