CFE
CFE
Set Xlabel as “Names” and Ylables as “Marks” and Title as Result (4)
Name Marks
Hemant 78
Kesha 85
Sonia 55
Navya 47
Shesha 69
(B)Write a program to create dataframe from a list containing dictionary of sales (1)
Performance of four sales men each salesman as dictionary that have target and
Sales. Define the index values as sales men name.
(i)Add new column name city with values are [Bhopal,Delhi,Baroda,Noida] (1)
(ii) Display records of saleman whose sale more than 25500 (1)
(iii) Add new row in dataframe data like (“Siya”,90) (1)
(1) Display the details of order whose total amount between 2 lack to 3 lack
(2)Display the total no. of quantity sale in each city.
(3)Remove the detail of order those not paid amount.
(4)Increase 5% on total price of Asus M.B
(5)Display detail of order that made after 15/8/2001
(6)Display the order details of mouse
(7)Display Order date and product based on total amount made
Q.1 (A)Write a python code to draw a simple Line graph of school result.
Set Xlabel as “Years” and Ylables as “Percentage” and Title as “School Result ” (4)
(ii)Write a code to create new column name “Total” as Total marks will display in the column. (1)
(iii) Insert new row in the dataframe data like (punit, 95, 88, 96) (1)
(iv) Display the Sunita’s record (1)
Q.2 Write a queries for the Table name: Game (7)
Student No Class Name Game Grade SUPW Grade1
10 7 Sameer Cricket B Photography A
11 8 Sujit Tennis A Gardening C
12 7 Kamal Swimming B Photography B
13 7 Veena Tennis C Cooking A
14 9 Archana Basketball A Literature A
15 10 Arpit Cricket A Gardening NULL
Q-2 Write SQL command to create the following table named FASHION (7)
Inst_id Institute_name City Director_Name Fees NoofStudent Dofadmtest
A123 NIFT Delhi Naveen Singh 34000 234 2020-01-23
A345 NIFT Lucknow BabitaKumari 30000 125 2020-02-12
B321 NIS Bareily Mitrunjay 15600 405 2020-03-23
B567 NIS Chandigarh Sahil Sharma 16000 240 2020-01-15
C433 AMITY Lucknow Karan Kapoor 42000 120 2020-02-20
C532 AMITY Delhi Nishtha Roy 44000 230 2020-03-13
Write QUERIES FOR FOLLWING:
a) Show the institute id , institute name of those institute which are having test in March month.
b) Show the name of the director of institute which are situated in Delhi;
c) Show the average of the fees for each institute where average is greater than 30000.
d) Show the name of the institute which are situated in Lucknow but students are less than
orequal to 120.
e) Show the number of characters/length of Director’s name
f) Arrange the record descending order of fees.
g) Display director_Name whose second latter is ‘a’ in their name.
Q.1 Programming using Pandas and Matplotlib:
Write a program in Python Pandas to create the following DataFrame “CUSTOMER” (1)
Target Sales
zoneA 56000 5800
zoneB 70000 6800
zoneC 75000 7800
zoneD 60000 6100
(B) Write Python code to draw the following bar graph representing the total sales in each
quarter. Add the Title, Label for X-axis and Y-axis. (4)
Write SQL queries using SQL functions to perform the following operations:
(i) Create Table Product using appropriate datatypes.
(ii) Display the first 3 characters of all Item names.
(iii) Display the names of all items whose Stock day is "Monday".
(iv) Display the total price of all the products.
(v) Display the maximum Price.
(vi) Display the average Price of all the products by the company named 'Logitech'.