Ayush IP
Ayush IP
Ayush
ishu rathi 12b Rathi 12C
PANDAS-SERIES
1) Create a series from a python sequence (list) with customized index.
OUTPUT:
OUTPUT:
OUTPUT:
'ishu rathi'
ishu rathi
OUTPUT:
OUTPUT:
3
ishu rathi 12b Ayush Rathi 12C
6) Create a series using dictionary and use all the attributes of Series
Object.
ishu rathi
OUTPUT:
ishu rathi
ishu rathi
LISTS1:
a) S1+2:- b)S1*3:-
c)S2=S1**2:- c)S1>15:-
OUTPUT:
PANDAS-DATAFRAME
9) Create Data Frameusing-listoflists.with customized row·index and
columns.
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
OUTPUT:
TANISH QSINGHLAMBA
8
ishu rathi 12b Ayush Rathi 12C
14) Create a Data Frame using any method and
use all the attributes of Data Frame objects.
OUTPUT:
ROLL NAME
FlRST 1 Suresh
SECOND 2 Mahesh
THIRD 3 Ramesh
OUTPUT:
OUTPUT:
OUTPUT:
DATA
VISUALIZATION
18) Write code to plot aline chart to display following data:
overs 1 2 3 4 5
IND_runs 12 7 5 10 8
NZ_runs 10 6 4 9 5
As per following details:
a. Overs must be displayed on x-axjs with label as OVERS
b. Runs must be displayed ony-AXIS with label as Runs
c. Legend should display at right to pcorner.
d. Line color of INDIAN team inchart must be red.
e. Line color of Newzeland team in chart
must be blue
OUTPUT:
OUTPUT:
MBA
14
ishu rathi 12b Ayush Rathi 12C
20) A survey gathers height and weight of 50 participants and recorded
the participants ages as:
ages=[1,2,3,5,7,8,5,6,8,9,12,23,43,56,2,3,54,67,89,12,13,14,23,14,145,
23,34,45,56,87,90,67,50,1,23,34,62,28,56,12,15,18,21,24,27,28,28,29,2
0,90]
Write a program to plot a histogram from above data with 20 bins.
OUTPUT:
MySQL
21) Create a database 'School' on the data base server, show the list
of data bases and open it.
24) Display all the information of males whose city is NEITHER Delhi
nor Mumbai.
25) Display the details of all students whose dateof birth lies before year
2002 and after year 1999.
28) List names of all students whose name has the character‘a’.
29) Display Name and Marks of those students whose marks is in the
range 400 and800( bothare inclusive)
31) Display city-name and sum of marks of the students from each city.
32) Display average marks, highest marks and total no. of students for
each city.
35) Add one more column to the table with the name “contact
number” (data type–varcharand size12).
39) Display name, data of birth and day name (like Sunday,
Monday,.),of those students whose marks is greater than or equal to
500.
41) Display the names of students and marks after rounding off the
marks up to 1 place.
43) Display name, 3rd and 4th character of each name and counting
of number of characters in each name.