Practical File Krish Sahu

Download as pdf or txt
Download as pdf or txt
You are on page 1of 30

NAME : KRISH SAHU

CLASS : 12
ROLL NO :
INDEX
S.NO TOPICS
1.PYTHON PANDA PROGRAMS
2.CSV TO PYTHON PANDAS
3.DATAVISUALIZATION
4.SQL QUERIES
CERTIFICATE
This is to certify that this practical file is a
bonafide record of the project work done by
Krish Sahu of class 12 CBSE Board.No …..….…… in
the academic year 2022 – 2023.
The project has been submitted in partial
fulfillment of AISSCE for practical held at St.
Mary's School, Safdarjung Enclave, New Delhi on
…………..

Ms. Anupama Swara


P.G.T, Computer Science
1.Write a Pandas program to create a series from a list shows the attributes of
series. (values, index, size, shape, ndim, nbytes, dtype, empty, hasnans)

CODE

OUTPUT
2.Write a Pandas program to add, subtract, multiple and divide two Pandas
Series.

CODE

OUTPUT
3.Write a program to demonstrate the head() and tail() functions on Series.

CODE

OUTPUT
4.Write a program to display all the elements greater than 100 from a Series
CODE

OUTPUT
5.Write a Python Program to create dataframe using Dictionary and display all
attributes
CODE

OUTPUT
6.Write a Python Program to perform head( ) , tail ( ) and Transpose Functions
on dataframe. Also to display the reverse of the dataframe.
CODE

OUTPUT
7. Write a Python Program to create the dataframe and selecting rows/column
using loc and iloc function.
CODE

OUTPUT
8. Write a Python program to demonstrate the addition and deletion of columns
in a Dataframe.
CODE

OUTPUT
9. Write a Python program to demonstrate the addition and deletion of rows in a
Dataframe
CODE

OUTPUT
10. Write a Python program to change the index numbers of a data frame and also
to rename the existing column names
CODE

OUTPUT
11. Write a program to export/import data from a csv file into a dataframe and
display the Dataframe
CODE

OUTPUT

12. Write a program to plot a simple line chart from a Dataframe


CODE
13. Create multiline chart from a Dataframe
CODE

OUTPUT
14. Write a program to plot a bar chart in python from a Dataframe
CODE

OUTPUT
15. Create Horizontal Bar chart from a Dataframe.
CODE

OUTPUT
16. Create a multi-horizontal bar chart from a Dataframe
CODE

OUTPUT
17. Create histogram
CODE

OUTPUT
SQL QUERIES
1. Create database and activate it

2. Create table Loan


3. Display the data from the table

4. To display where interest rate is more than 3


5.To display where start date is after march 2022

6. Display the number of installments for every rate of


interest
7. Display all custom name in uppercase

8. Display the first three digits of the loan amount


of every customer
9. Display the details of every customer where length of the
customer’s name is more than seven

10. Display the year of the loan of every customer


11. Display number of months that the installment has been
paid by every customer

12. Display the number of customers for every loan amount


13. Display the first three and the last three alphabets
of every customer name

14. Display the position of off the alphabet A in every


customer name
15. Display the name of the day and the name of the month that
the loan started

16. Display the data in descending order of installment


amount
17. Display the smallest and the largest loan
amount

18. Display the oldest and latest start date of


the loan

You might also like