Final Updated Library Management
Final Updated Library Management
Bonafide Certificate
DATED:------------------------ -----------------------------------
External Examiner
1. introduction
2. software
3. coding
4. output
5. references
INTRODUCTION
The project titled Library Management System is
LibraryManagement software for monitoring and
controlling the transactions in a library .The project
“Library Management System” is developed in php,
which mainly focuses on basic operations in a library
like adding new books, and updating new
information, searching books and members and
return books.
This project of “LIBRARY MANAGEMENT” of gives us
the complete information about the library. We can
enter the record of new books and retrieve the
details of books available in the library. We can issue
the books to the students and maintain their records
and can also check how many books are issued and
stock available in the library. In this project we can
maintain the late fine of students who returns the
issued books after the due date.
Throughout the project the focus has been on
presenting information and comments in an easy and
intelligible manner. The project is very useful for
those who want to know about Library Management
System.
Software – python
Python is a popular programming
language. It was created by Guido van
Rossum, and released in 1991. It is used
for:
Web development (server-side),
Software development,
Mathematics,
System scripting.
Library Management
(Coding)
import pandas as pd
import matplotlib.pyplot as plt
def menu():
print()
print("'''''''''''''''''''''''''''''''''''''''''''''''''''''")
print( " Library Management Project ")
print("'''''''''''''''''''''''''''''''''''''''''''''''''''''")
print()
print()
print("Member csv files")
print(" 1.Read csv file - member ")
print(" 2.Delete a column Membershipfee from membber
file")
print(" 3.Increase Membership Fee ")
print(" 4.Display Member name in ascending order")
print("Book csv file")
print(" 5.read 2 records from top and 2 from bottom from
file - member")
print(" 6.Modify Membership fee to null")
print(" 7.Add new book detail in book file")
print(" 8.show books list ")
print(" 9.Author name in descending order ")
print(" 10.Read csv file - book ")
print(" 11.find total books in library ")
print("Data visualization")
print(" 12.line plot ")
print(" 13.bar plot")
print("''''''''''''''''''''''''''''''''''''''''''''''''''''")
menu()
def member():
print('Reading File Book')
df=pd.read_csv("C:\\Users\\Lenovo\\Desktop\\member.csv")
print(df)
def delete_col():
print('Delete coloumn Members')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv")
print(df)
del df['Members']
print(df)
def fee_inc():
print('increase members by Rs.100')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv")
df['Members']+=100
print(df)
print(df)
def sort_member():
print('sorting Members names in Ascending order')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv",index
_col=0)
df=df.sort_values('Name')
print(df)
def top_bottom():
print('Top 2 Records and Last 2 Records')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv")
print('top 2 rows')
print(df.head(2))
print()
print()
print('Last 2 rows')
print(df.tail(2))
def modify_withNaN():
print('Change Membership fee to of 500 to null')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv")
print(df)
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv",na_v
alues=[500])
print(df)
def new_Book():
print('Add new book detail in Book file')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\books.csv")
df.at['6',:]=[105,'English Grammar','Sanjay
Kumar',3,200,'Available','Sultan Chand']
print(df)
def Book_name():
print('Show Books List')
print('Add new book detail in Book file')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\books.csv",usecols
=['Bname'])
print(df)
def sort_Author():
print('Show Author name in Descending order')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\books.csv",index_c
ol=0)
df=df.sort_values('Author',ascending=False)
print(df)
def Book():
print('Reading file book')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\books.csv")
print(df)
def Totalbooks():
print('Find total books in the library')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\books.csv")
Totalbooks=df['Copies'].sum()
print(Totalbooks)
def line_plot() :
print('line plot')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv")
x=df['Late by days']
y=df['Fine']
plt.plot(x,y,color='red',linewidth=5,linestyle='dotted')
plt.xlabel('Late by days')
plt.ylabel('Fine')
plt.title('late by how many days and fine')
plt.show()
def bar_plot():
print('bar plot')
df=pd.read_csv("c:\\users\\Lenovo\\desktop\\member.csv")
x=df['Mid']
y=df['Fine']
plt.xlabel('Mid')
plt.ylabel('Fine')
plt.title('Members ID and Fine')
plt.bar(x,y)
plt.show()
opt=""
opt=int(input("enter your choice:"))
if opt==1:
member()
elif opt==2:
delete_col()
elif opt==3:
fee_inc()
elif opt==4:
sort_member()
elif opt==5:
top_bottom()
elif opt==6:
modify_withNaN()()
elif opt==7:
new_Book()
elif opt==8:
Book_name()
elif opt==9:
sort_Author()
elif opt==10:
Book()
elif opt==11:
Totalbooks()
elif opt==12:
line_plot()
elif opt==13:
bar_plot()
else:
print('invalid option')
Member csv
Mid Name Members Address Book issued Date of issue
0 M20 Aruna 500 Darya Gj Computer Sc. 12/9/2020
1 M21 Neeta 1200 Karol Bg Informatics Pr. 14-09-2020
2 M22 Anita 500 Pusa Rd Informatics Pr. 20-09-2020
3 M23 Pooja 1200 Noida Informatics Pr. 1/10/2020
4 M24 Arti 500 Gr.Noida English Grammar 20-09-2020
Late
Date to by
return Returned on days Fine
22-09-2020 28-09-2020 6 60
24-09-2020 24-09-2020 0 0
30-09-2020 1/10/2020 1 10
11/10/2020 15-10-2020 4 40
30-09-2020 1/10/2020 1 10
BOOKS CSV
Bid Bname Author Price Copies Status Publisher
Sumita
101 Computer Sc. Arora 450 4 Avalilable Navneet
Informatics Not
102 Ps. Preeta Arora 380 3 Avalilable Navneet
103 IT Reeta Sahoo 350 2 Avalilable Bluebells
Mathematics
104 as fun R.J.Jain 420 5 Avalilable Saraswati
OUTPUT:-
CHOICE:-1
Choice:-2
Choice:-3
Choice:-4
Choice:-5
Choice:-6
Choice:-7
Choice:-8
Choice:-9
Choice:-10
Choice:-11
Choice:-12
Choice:-13
REFERENCES
Itsourcecode.com
Youtube.com
Slideshare.net
Courser.org
Informatics practices class XI and XII(NCERT)