IP Project Deepika
IP Project Deepika
INFORMATICS PRACTICES
PROJECT FILE
Participants : Novina & Deepika
Page | 1
ACKNOWLEDGEMENT
DEEPIKA BALOTIYA
XII - Commerce
Page | 2
Page | 3
INDEX
1. Theoretical 5
Background
2. Minimum 11
Requirements
3. CSV File 12
4. Source Code 13
5. Output 19
6. Bibliography 25
Page | 4
THEORITICAL
BACKGROUND
WHAT IS PYTHON?
Python is a High- level, general-purpose programming
language known for its readability and versatility. It supports
multiple programming paradigms and is widely used in various
domains, including web development ,data science, artificial
intelligence, and more. It was created by Guido van Rossum
and first released in 1991.Python’s simple, easy to learn syntax
emphasizes readability and therefore reduces the cost of
programming maintenance. It is free and open source and
more expressive. Python supports modules and packages,
which encourages program modularity and code reuse. Some
of the characteristics:
straightforward.
Page | 5
What is Pandas?
Pandas is Python’s library for data analysis. Pandas has derived
its name from “Panel Data System” and it has become very
business problem.
Structure-
1. Series
2. Dataframe
Page | 6
What is Data Visualization?
pattern easily.
Page | 7
Matplotlib Library and pyplot Interface
The Matplotlib is a python library that provides many
interfaces functionally for 2D graphics.
In short, we can call matplotlib as a high –quality plotting library of
python.
The matplotlib library offers many different named collections of
methods,pyplot is one such intereface.
Pyplot is a collection of methods within matplotlib which
allows user to construct 2D plots easily and interactively.
matplotlib
Page | 8
2. Vertical Bar Graph
4. Histogram
Page | 9
CSV Files
CSV stands for comma- Separated values.
the most common, simple and easiest method to store tabular data.
and columns.
To import data from a CSV file into a DataFrame, you can use the
read_CSV() function.
This function takes the path to the CSV file as its input, and returns
a DataFrame object.
To export a DataFrame to a CSV file, you can use the to_CSV() function.
This function takes the path to the CSV file as its Output,and
Page | 10
MINIMUM
REQUIREMENTS
OPERATING SYSTEM:-
WINDOWS 7 OR ABOVE
PROCESSOR: -
PENTIUM (ANY) OR AMD ATHALON (DUAL CORE)
RAM:-
4 GB (RECOMMENDED)
HARD DISK:-
6 GB (MINIMUM)
SOFTWARES:-
PYTHON 3.X
Page | 11
CSV FILE
EMP.CSV
Page | 12
SOURCE
CODE
Page | 13
import pandas as pd
ch='Y'
while ch=='Y':
female employees')
print('4.Search Record')
print('6.Delete record')
print('7.Modify record')
graph')
graph')
file
print('file opened')
elif choice==2:
print(df)
elif choice==3:
print(df[df['gender']=='F']['name'])
elif choice==4:
index value
if len(inx)==0:
else:
print(df[df.empno==e])
elif choice==5:
d=input('Enter dept\t')
s=int(input("Enter salary\t"))
g=input("Enter gender\t")
df=df.append({'empno':e,'name':n,
'dept':d,'gender':g,'salary':s},ignore_index=True)
print('record added')
elif choice==6:
e=int(input('enter emp no to
delete'))
inx=df[df.empno==e].index.values
if len(inx)==0:
else:
print(df[df.empno==e])
df=df[df['empno']!=e]
print('record deleted')
index value
if len(inx)==0:
else:
print(df[df.empno==e])
df.loc[inx,"name"]=n
df.loc[inx,"dept"]=d
df.loc[inx,"salary"]=s
df.loc[inx,"gender"]=g
print("record updated")
elif choice==8:
Page | 17
plt.ylabel('Salary')
plt.xlabel('Empno')
plt.plot(df['empno'],df['salary'])
plt.title('Salary Chart')
plt.show( )
elif choice==9:
plt.bar(df['name'],df['salary'])
plt.title('Salary Graph')
plt.xlabel('Names')
plt.ylabel('Salary')
plt.show( )
elif choice==10:
df.to_csv('emp.csv',index=False)
print('file saved')
ch=input('Do u want to
continue').upper( )
Page | 18
OUtpUt
SCREEnS
Page | 19
CHOICE 1
CHOICE 2
Page | 20
CHOICE 3
CHOICE 4
Page | 21
CHOICE 5
CHOICE 6
Page | 22
CHOICE 7
CHOICE 8
Page | 23
CHOICE 9
CHOICE 10
Page | 24
Google.co.in
Wikipedia.com
Text Book:
Page | 25
Page | 26