Last Final Ip File Shikhar
Last Final Ip File Shikhar
INFORMATICS PRACTICES
PROJECT FILE
FOR
CLASS- XII B
INDEX
2 CERTIFICATE 3
3 ACKNOWLEDGEMENT 4
4 PREFACE 5
5 OBJECTIVE 7
6 DMS V/S 8
MANUAL SYSTEM
INPUT/OUTPUT
7 REQUIRMENTS
9
8 HARDWARE & 10
SOFTWARE
REQUIRMENTS
9 DATABASE (CSV FILES) 13
10 SOURCE CODE 14
11 OUTPUT 20
12 REFRENCE 26
about:blank
F43333333333333rfdcv 2/30
Page |3
about:blank
F43333333333333rfdcv 3/30
Page |4
ACKNOWLEDGEMENT
APART FROM THE EFFORT OF ME, THE SUCCESS OF ANY PROJECT
DEPENDS ON THE ENCOURAGEMENT AND GUIDELENES OF MANY
OTHERS. WE TAKE THIS OPPORTUNITY TO EXPRESS OUT GRATITUDE TO
THE PEOPLE WHO HAVE BEEN INSTRUMENTAL IN THE SUCCESSFUL
COMPLETION OF THIS PROJECT.
R.K VYAS” FOR PROVIDING WITH ALL THE FACILITIES THAT WAS
REQUIRED.
CLASS: XII B
about:blank
F43333333333333rfdcv 4/30
Page |5
PREFACE
SYSTEM”
manage
about:blank
F43333333333333rfdcv 5/30
Page |6
about:blank
F43333333333333rfdcv 6/30
Page |7
OBJECTIVE
• Increased efficiency.
• Save time.
about:blank
F43333333333333rfdcv 7/30
Page |8
about:blank
F43333333333333rfdcv 8/30
Page |9
INPUT/OUTPUT REQUIREMENTS
• OPERATING SYSTEM
about:blank
F43333333333333rfdcv 9/30
P a g e | 10
about:blank 10/30
P a g e | 11
FEATURES OF PYTHON
• High level
• Object oriented
• Simple
• Interpreted
• Open software
• Expressive language
• GUI programming
about:blank 11/30
P a g e | 12
PYTHON LIBRARY-MATPLOTLIB
Matplotlib is a cross-platform, data visualization and
graphical plotting library for Python and its numerical
extension NumPy. As such, it offers a viable open source
alternative to MATLAB. Developers can also use matplotlib’s
APIs (Application Programming Interfaces) to embed plots in
GUI applications.
C.S.V FILE
A CSV (comma-separated values) file is a text file that has a
specific format which allows data to be saved in a table
structured format.
about:blank 12/30
P a g e | 13
about:blank 13/30
P a g e | 14
SOURCE CODE
from ast import Break
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
df1=pd.read_csv("C:\\Users\\lenovo\\Desktop\\companies
data.csv")
print(df1)
s=("Main Menu")
while(True):
print("Main Menu")
print("1. Display records of top MNCs")
print("2. Fetch data")
print("3. Update values")
print("4. Looking for a particular section?")
print("5. Want some comparison?")
print("6. EXIT")
Break
about:blank 14/30
P a g e | 15
Ch=int(input("Enter Choice"))
if Ch==1:
print(df1)
elif Ch==2:
while(True):
print("Database")
print("1. Top 5 Companies")
print("2. Bottom 5 Companies")
print("3. Specific number of companies from the top")
print("4. Specific number of companies form bottom")
print("5. Exit")
Ch2=int(input("Enter Choice"))
C if Ch2==1:
print(df1.head())
elif elif Ch2==2:
print(df1.tail())
elif Ch2==3:
n=int(input("Enter how many companies you want to display
from the top"))
print(df1.head(n))
about:blank 15/30
P a g e | 16
elif Ch2==4:
n=int(input("Enter how many companies you want todisplay
from the bottom"))
print(df1.tail(n))
elif Ch2==5:
Break
elif Ch==3:
while(True):
print("Working on columns Menu")
print("1. Insert a new column data")
print("2. Delete a specific column")
print("3. Exit")
print("column inserted")
about:blank 16/30
P a g e | 17
elif Ch3==2:
a=input("Enter column name which need to be deleted ")
d df1.drop([a],axis=1,inplace=True)
print(df1)
print("column deleted")
elif Ch3==3:
beak Break
elif Ch==4:
while(True):
print("Search Menu")
print("1. Search for details of a specific company")
print("2. Search details for a specific column")
print("3. Exit")
if Ch4==1:
st=int(input("Enter index no. of the company whose details
you want to see"))
print(df1.loc[st])
elif Ch4==2:
col=input("Enter column whose detail you want to see")
print(df1 print(df1[col])
elif Ch4==3:
brea Break
about:blank 17/30
P a g e | 18
elif Ch==5:
while(True):
print("Data visualization menu")
print("1. Line plot for Employee Comparison")
print("2. Vertical Bar Plot For Net worth Comparison")
print("3. Horizontal Bar plot For Global position
Comparison")
print("4. Exit")
Emp=[221000,58604,1468000,150028,110000,935000,342982,2
76319,12000,11300]
plt.title("No. of employees in top MNCs")
plt.xlabel("Company name")
plt.show()
Break
about:blank 18/30
P a g e | 19
elif Ch5==2:
Comp=['Microsoft','Meta','Amazon','Google','Tesla','Tata','Relian
ce','Infosys','SpaceX','Netflix']
Net=[2135,36,1053.5,1420,710.78,260,229,79.06,2,131.6]
plt.title("Net worth of top MNCs")
plt.ba plt.bar(Comp,Net,color='b')
plt.xlabel("COMPANY NAME")
plt.ylabel("NET WORTH IN BILLION DOLLARS")
plt.show()
Break
elif Ch5==3:
Comp=['Microsoft','Meta','Amazon','Google','Tesla','Tata','Relian
ce','Infosys','SpaceX','Netflix']
Gpos=[21,27,1,2,103,78,104,50,378,245]
plt.plot(Comp,Gpos,color='r')
plt.title("Line Chart representing company information")
plt.xlabel("COMPANY NAME")
pltylabe plt.ylabel("GLOBAL POSITION")
plt.show()
Break
elif Ch5==4:
Break
elif Ch==6:
Break
about:blank 19/30
P a g e | 20
OUTPUTS
about:blank 20/30
P a g e | 21
about:blank 21/30
P a g e | 22
about:blank 22/30
P a g e | 23
about:blank 23/30
P a g e | 24
about:blank 24/30
P a g e | 25
about:blank 25/30
P a g e | 26
REFERENCES
• Preeti arora
• Class notes
about:blank 26/30