Combinepdf
Combinepdf
SCHOOL
LIBRARY MANAGEMENT
INFORMATICS PRACTICES PROJECT
SIGNATURE OF TEACHER
ACKNOWLWDGEMENT
I EXPRESS MY DEEP SENSE OF
GRATITUDEAND REGARD TO MY
TEACHER MR.BASANTKUMAR FOR
CONSTANT GUIDANCE
ANDSUPERVISON DURING THE
PERIOD OF MYPROJECT WORK
WHICH MADE IT POSSIBLEFOR ME TO
COMPLETE THIS PROJECT. IWOULD
ALSO LIKE TO RECORD MYSINCERELY
THANKS TO MY PARENTS
WHOSECONSTANT
ENCOURAGEMENT HELPED MEIN
COMPLETING THIS PROJECT.
SIGNATURE OF CANDIDATE
CONTENTS
1. Hardware Used
2. Software Used
➢ Windows 7 Professional
➢ Jupyter Notebook (Python 3.0x)
➢ MySQL
➢ Microsoft Word
INTRODUCTION
What is PANDAS?
What is MySQL?
elif(ch==5):
cursor = con.cursor()
str = "Select * from Library;"
cursor.execute(str)
data = cursor.fetchall()
df = pd.DataFrame(data, columns = ['Bookno',
'BName', 'Subject', 'Purchase',
'Price', 'Tax', 'Category'])
print(df)
for index, row in df.iterrows():
print(index, row)
OUTPUT:-
0 Bookno 8001
BName Harry Potter
Subject Story
Purchase 2018-09-03
Price 1500.00
Tax 240.00
Category 20
2 Bookno 8004
BName Architecture
Subject Computer
Purchase 2019-04-20
Price 550.00
Tax 50.00
Category 20
Name: 2, dtype: object
3 Bookno 8005
BName HTML
Subject Computer
Purchase 2018-04-04
Price 600.00
Tax 70.00
Category 20
Name: 3, dtype: object
4 Bookno 8006
BName Java
Subject Programming
Purchase 2018-05-06
Price 750.00
Tax 20.00
Category 10
Name: 4, dtype: object
5 Bookno 8007
BName DS
Subject Computer
Purchase 2020-06-02
Price 850.00
Tax 65.00
Category 20
Name: 5, dtype: object
6 Bookno 8008
BName Jurrasic Park
Subject Horror
Purchase 2020-06-09
Price 650.00
Tax 76.00
Category 40
Name: 6, dtype: object
7 Bookno 8009
BName Algebra
Subject Maths
Purchase 2018-09-30
Price 850.00
Tax 54.00
Category 60
Name: 7, dtype: object
8 Bookno 8010
BName Matrices
Subject Maths
Purchase 2020-09-08
Price 750.00
Tax 54.00
Category 60
Name: 8, dtype: object
9 Bookno 8012
BName Ancient India
Subject History
Purchase 2019-07-05
Price 950.00
Tax 100.00
Category 50
Name: 9, dtype: object
ANALYSE RECORD USING
ITERITEMS()
elif(ch==6):
cursor = con.cursor()
str = "Select * from Library;"
cursor.execute(str)
data = cursor.fetchall()
df = pd.DataFrame(data, columns = ['Bookno',
'BName', 'Subject', 'Purchase',
'Price', 'Tax', 'Category'])
print(df)
for index, col in df.iteritems():
print(index, col)
OUTPUT:-
Bookno 0 8001
1 8002
2 8004
3 8005
4 8006
5 8007
6 8008
7 8009
8 8010
9 8012
Name: Bookno, dtype: int64
Subject 0 Story
1 Programming
2 Computer
3 Computer
4 Programming
5 Computer
6 Horror
7 Maths
8 Maths
9 History
Name: Subject, dtype: object
Purchase 0 2018-09-03
1 2020-09-08
2 2019-04-20
3 2018-04-04
4 2018-05-06
5 2020-06-02
6 2020-06-09
7 2018-09-30
8 2020-09-08
9 2019-07-05
Name: Purchase, dtype: object
Price 0 1500.00
1 750.00
2 550.00
3 600.00
4 750.00
5 850.00
6 650.00
7 850.00
8 750.00
9 950.00
Name: Price, dtype: object
Tax 0 240.00
1 100.00
2 50.00
3 70.00
4 20.00
5 65.00
6 76.00
7 54.00
8 54.00
9 100.00
Name: Tax, dtype: object
Category 0 20
1 10
2 20
3 20
4 10
5 20
6 40
7 60
8 60
9 50
Name: Category, dtype: int64
ANALYSE RECORD USING
ITERITUPLES()
elif(ch==7):
cursor = con.cursor()
str = "Select * from Library;"
cursor.execute(str)
data = cursor.fetchall()
df = pd.DataFrame(data, columns = ['Bookno',
'BName', 'Subject', 'Purchase',
'Price', 'Tax', 'Category'])
print(df)
for row in df.itertuples():
print(row)
OUTPUT:-
Pandas(Index=0, Bookno=8001, BName='Harry
Potter', Subject='Story',
Purchase=datetime.date(2018, 9, 3),
Price=Decimal('1500.00'),
Tax=Decimal('240.00'), Category=20)
Pandas(Index=2, Bookno=8004,
BName='Architecture', Subject='Computer',
Purchase=datetime.date(2019, 4, 20),
Price=Decimal('550.00'), Tax=Decimal('50.00'),
Category=20)
0 8001
1 8002
2 8004
3 8005
4 8006
5 8007
6 8008
7 8009
8 8010
9 8012
dtype: int64
Bookno 8001
BName Algebra
Subject Computer
Purchase 2018-04-04
Price 550.00
Tax 20.00
Category 10
dtype: object
0 20
1 10
2 20
3 20
4 10
5 20
6 40
7 60
8 60
9 50
dtype: int64
GRAPHICAL
REPRESENTATION USING
PLOT() FUNCTION
elif(ch==9):
cursor = con.cursor()
str = "Select * from Library;"
cursor.execute(str)
data = cursor.fetchall()
df = pd.DataFrame(data, columns = ['Bookno',
'BName', 'Subject', 'Purchase',
'Price', 'Tax', 'Category'])
print(df)
plt.plot(df.BName, df.Price)
plt.xlabel("Book Name")
plt.ylabel("Book Price")
plt.title("Book Table")
OUTPUT:-
GRAPHICAL
REPRESENTATION USING
BAR() FUNCTION
elif(ch==10):
cursor = con.cursor()
str = "Select * from Library;"
cursor.execute(str)
data = cursor.fetchall()
df = pd.DataFrame(data, columns = ['Bookno',
'BName', 'Subject', 'Purchase',
'Price', 'Tax', 'Category'])
print(df)
plt.bar(df.BName, df.Price)
plt.xlabel("Book Name")
plt.ylabel("Book Price")
plt.title("Book Table")
else:
print("Invalid")
OUTPUT:-
CONCLUSION
To save the cost and time & also to record every transaction
➢ Python Forum
➢ MySQL Forum
➢ cbse.nic.in
➢ wikipedia.com
➢ google.com
➢ youtube.com