Raj Verma Practical File
Raj Verma Practical File
PRACTICAL FILE
ON
FOR
SUBMITTED BY:
Numpy Array
Creating numpy array with different methods
1.
head()
tail()
12.
MY SQL
(a) Create Table Charity and perform various
queries.
# array() function
# arange() function
Q Create a Series with index a,e,I,o,u, and value=0
OUTPUT:
Q-Subtract,Multiply,Divide,vowels by vowels1
Q-Change the labels of vowels to ['A','E','I','O','U']
1. EngAlph having 26 elements with alphabet as values
Q-Display the alphabet ‘c’ to ‘p’
#Size:
#Values:
Q-Rename the Series as Alphabets
Q Create following Series:
a. MonthDays from numpy array having numbers of days of the 12months of the
year, labels should be the month number from 1to12
Ques WAC to create the dataframe from the given data from different
methods..
Creating dataframe with list of lists
Creating dataframe with list of dictionary.
Ques WAC to display the ename and salary from the employee
Ques WAC to display the record of 2nd index from the employee
Ques WAC to display the record from 2nd to 4th index from the employee.
Ques.. Write a program to consider the dataframe and display a menu to show
the following information regarding the dataframe. Transpose, Column names,
Indexes, datatypes of individual columns, size and shape of the dataframe. Your
program must keep on displaying as per the menu till the user’s choice.
Ques. Write a menu based program to perform the following operations on
columns of the above defined dataframe based on user specified inputs:
1. Insert a new column at the end
2. Insert a new column at a specified position
3. Delete a column permanently
4. Delete a column temporarily
5. Display the DataFrame
Ques. Considering the given dataframe write code to insert more records as per
choice of the user.
Ques. Consider a csv file named ‘student’ and write a menu driven programto
create dataframe from given csv and perform various functions:
head()
tail()
Also draw a line chart ,bar chart of the given data.
DATA
VISULISATION
Draw point chart
Draw line chart
Draw two Line chart
Draw line chart
Draw a bar chart
Draw bar chart or bar graph
Draw Horizontal bar chart
Draw Multiple bar chart
Draw Bar chart using data frame
Draw a Histogram bar chart
Sql
Q Create table charity.
Table:
1.Display all first name in Lower case.
3. Display client name, city, product name, price and pid in the
ascending order of their price
Give o/p:
1. select manufacturer,max(price),min(price),count(*) from
product group by manufacturer;
2. select cname,manufacturer from product,client where
client.pid=product.pid;
3. Display min price and max price for each iname from the
table item whose min price should be greater than 300
4. Display iname, average price, sum of price, and their
respective sname of item which ends with ‘d’ whose sum of
the price should be greater than 800
5. Write O/P
A. select distinct iname from item where price>5000;