LibraryMgmt XII IP ProjectReportFinal
LibraryMgmt XII IP ProjectReportFinal
LibraryMgmt XII IP ProjectReportFinal
PALLAVUR
PROJECT REPORT ON
LIBRARY MANAGEMENT
AS PART OF INFORMATICS PRACTICES [065]
CLASS XII
Signature of Signature of
Signature of Principal
ACKNOWLEDGEMENT
3. Implementation
4. Output screenshots
5. Limitations
Advantages
Fast and efficient for manipulating and analysing data.
Data from different file objects can be loaded.
Easy handling of missing data (represented as NaN) in floating point as
well as non-floating-point data
Size mutability: columns can be inserted and deleted from DataFrame and
higher dimensional objects
CSV:
A CSV file (Comma Separated Values file) is a type of plain text file
that uses specific structuring to arrange tabular data. Because it's a
plain text file, it can contain only actual text data—in other words,
printable ASCII or Unicode characters. The structure of a CSV file is
given away by its name
MATPLOTLIB
Matplotlib is a comprehensive library for creating static, animated,
and interactive visualizations in Python. Matplotlib makes easy things
easy and hard things possible.
Create publication quality plots.
Make interactive figures that can zoom, pan, update.
Customize visual style and layout.
IMPLEMENTATION
books.csv
bn bnam DO auth no no_of_bi no_of_bre balance_
o e P or lang btype c ssued turned books
22
- APJ
10 Abdu
- l
wings 20 kala Engl Autobiog
1 of fire 20 m ish raphy 10 5 0 5
10
-
10
- Paulo
Alche 20 cheo Engl
2 mist 20 el ish Novel 15 2 1 14
Source Code
import pandas as pd
def main_menu():
def create_dataframe_menu():
def analysis_menu():
cols =
['bno','bname','DOP','author','lang','btype','noc','no_of_bissued','no_of_breturned','balance_bo
oks']
def visualisation_menu():
cols =
['bno','bname','DOP','author','lang','btype','noc','no_of_bissued','no_of_breturned','balance_bo
oks']
while True:
main_menu()
if ch == 1:
create_dataframe_menu()
if ch == 1:
data = []#list
while True:
if ch.lower() == 'y':
lang=input("language ")
bty=input("Book Type")
noc=int(input("Number of copies:"))
balance_books=(no_of_bissued)-no_of_breturned
data.append([bno,bname,dop,aut,lang,bty,noc,no_of_bissued,no_of_breturned,balance_books
])
else:
break
elif ch == 2:
df = pd.read_csv(file)
elif ch == 3:
df.index = index_list
elif ch == 4:
df.columns = column_list
print(df)
elif ch == 2:
while True:
analysis_menu()
print(df)
elif ch == 2:
print(df.head(nth))
elif ch == 3:
print(df.tail(nth))
elif ch == 4:
print(df.sort_values(by='bname'))
elif ch == 5:
print(df[df['bname'] == df['bname'].max()])
elif ch == 6:
print(df[df['bname'] == df['bname'].min()])
elif ch == 7:
print(df['bname'].unique())
elif ch == 8:
data = []#list
while True:
if ch.lower() == 'y':
lang=input("language: ")
bty=input("Book Type:")
noc=int(input("Number of copies:"))
balance_books=no_of_bissued-no_of_breturned
data.append([bno,bname,dop,aut,lang,bty,noc,no_of_bissued,no_of_breturned,balance_books
])
else:
break
elif ch == 9:
if ch == 1:
df = df.drop(index = idx)
elif ch == 2:
df = df.drop(df[df["bno"] == bno].index)
else:
break
elif ch == 10:
elif ch == 3:
file ="books.csv"
df = pd.read_csv(file)
while True:
#'bno','bname','DOP','author','lang','btype','noc','no_of_bissued','no_of_breturned','balance_bo
oks']
visualisation_menu()
if ch == 1:
plt.xlabel("books", fontsize=12)
plt.ylabel("count", fontsize=12)
plt.legend()
plt.show()
elif ch == 2:
x_values = df["bname"]
y_values = df['noc']
plt.bar(x_values, y_values, color = 'orange')
plt.xlabel("books", fontsize=12)
plt.ylabel("count", fontsize=12)
plt.show()
elif ch == 4:
x_values = df["bname"]
y_values = df["author"]
plt.xlabel("books", fontsize=12)
plt.ylabel("author", fontsize=12)
plt.show()
elif ch == 3:
break
else:
elif ch == 4:
elif ch == 5:
# Exit
print("Bye ...")
exit()
else:
# Error Display and Exit
break
main_menue()
OUTPUT SCREENTS
1.add the records
REQUIREMENTS
BIBILOGRAPHY
http://python.mykvs.in