Vansh Garg Project File
Vansh Garg Project File
SCHOOL
INFORMATICS PRACTICES
(065)
PROJECTFILE
(2022-23)
Certificate
PAGE \* MERGEFORMAT 2
This is to certify that BHAVYARAJ KAPOOR of Class 12th G
of Lovely Public Senior Secondary School, Priyadarshini
Vihar has completed hisproject titled HUMAN
TRAFFICKING under my supervision and he/she has taken
proper care and shown keen interest in accomplishing this
project. He has successfully completed the project work in
Informatics Practices (065) upto my satisfaction. All the
guidelines issued by CBSE have been followed in making of
this project.
_________________________
Ms. Poonam Mehrotra
PGT Informatics Practices
PAGE \* MERGEFORMAT 2
Index
S. No. Content Page No.
1. Project Title 5
2. Synopsis 6
3. Front end and Back End Used 7
4. CSV Files Used 8
5. Coding of the Program 9
6. Output Screenshots 16
7. Bibliography 30
Project title
PAGE \* MERGEFORMAT 2
(HUMAN TRAFFICKING)
Synopsis
PAGE \* MERGEFORMAT 2
Human Trafficking, also called trafficking in persons,
form of modern-day slavery involving the illegal transport of
individuals by force or deception for the purpose of labour,
sexual exploitation, or activities in which others benefit
financially. Human trafficking is a global problem affecting
people of all ages. It is estimated that approximately 1,000,000
people are trafficked each year globally and that between
20,000 and 50,000 are trafficked into the United States, which
is one of the largest destinations for victims of the sex-
trafficking trade.
Human traffickers often create transnational routes for
transporting migrants who are driven by unfavourable living
conditions to seek the services of a smuggler. Human
trafficking usually starts in origin countries—
namely, Southeast Asia, eastern Europe, and sub-
Saharan Africa—where recruiters seek migrants through
various mediums such as the Internet, employment agencies,
the media, and local contacts. Middlemen who recruit from
within the origin country commonly share the cultural
background of those migrating. Migrants view the services of a
smuggler as an opportunity to move from impoverished
conditions in their home countries to more stable,
developed environments.
PAGE \* MERGEFORMAT 2
Coding of the Program
import pandas as pd
PAGE \* MERGEFORMAT 2
import matplotlib.pyplot as plt
human=pd.read_csv("humantraf.csv",index_col=0)
while(True):
print("8. Exit")
if ch==1:
human=pd.read_csv("humantraf.csv",index_col=0)
elif ch==2:
while (True):
PAGE \* MERGEFORMAT 2
print("7. Display the size")
print("8. Exit")
if ch2==1:
print(human.T)
elif ch2==2:
print(human.columns)
elif ch2==3:
print(human.index)
elif ch2==4:
print(human.shape)
elif ch2==5:
print(human.ndim)
elif ch2==6:
print(human.dtypes)
elif ch2==7:
print(human.size)
elif ch2==8:
break
else:
elif ch==3:
while(True):
print("6. Exit")
if ch3==1:
print(human.head())
elif ch3==2:
print(human.tail())
elif ch3==3:
n=int(input("\nEnter how many records you want to display from the top = "))
print(human.head(n))
elif ch3==4:
n=int(input("\nEnter how many records you want to display from the bottom = "))
print(human.tail(n))
elif ch3==5:
st=input("\nEnter the state name for which you want to see the details = ")
A=st.upper()
print(human.loc[A])
elif ch3==6:
break
else:
elif ch==4:
while(True):
print("4. Exit")
PAGE \* MERGEFORMAT 2
ch4=int(input("\nEnter your choice here = "))
if ch4==1:
human.loc[a]=[b,c,d,e]
elif ch4==2:
human.drop([a],inplace=True)
elif ch4==3:
human.loc[a]=[b,c,d,e]
elif ch4==4:
break
else:
elif ch==5:
while(True):
PAGE \* MERGEFORMAT 2
print("\n\n\t\t\t~~~~ Search Menu ~~~~\n")
print("3. Exit")
if ch6==1:
st=input("\nEnter the name of the city whose details you want to see = ").upper()
print(human.loc[st])
elif ch6==2:
print(human[col])
elif ch6==3:
break
else:
elif ch==6:
while(True):
print("4. Histogram")
print("5. Exit")
if ch7==1:
n=int(input("\nHow many states from the top you want to plot? = "))
df=human.head(n)
mb=df['MBelow18']
PAGE \* MERGEFORMAT 2
fb=df['FBelow18']
ma=df['MAbove18']
fa=df['FAbove18']
s=df.index
plt.xlabel("STATES")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif ch7==2:
n=int(input("\nHow many states from the top you want to plot? = "))
df=human.head(n)
df.plot(kind="bar")
plt.xlabel("STATES")
plt.show()
elif ch7==3:
n=int(input("\nHow many states from the top you want to plot? = "))
df=human.head(n)
df.plot(kind="barh")
plt.ylabel("STATES")
plt.show()
elif ch7==4:
n=int(input("\nHow many states from the top you want to plot? = "))
df=human.head(n)
df.plot(kind="hist")
plt.xlabel("STATES")
plt.show()
elif ch7==5:
break
else:
elif ch==8:
break
elif ch == 7:
human.to_csv("humantraf.csv")
print(human)
else:
PAGE \* MERGEFORMAT 2
Output Screenshots
OUTPUTS
1. VIEW OF MAIN MENU
PAGE \* MERGEFORMAT 2
2. VIEW OF OPTION 1
PAGE \* MERGEFORMAT 2
3. VIEW OF OPTION 2
OPTION 2 OPTION 3
PAGE \* MERGEFORMAT 2
OPTION 4 OPTION 5
OPTION 6 OPTION 7
PAGE \* MERGEFORMAT 2
4. VIEW OF OPTION 3
OPTION 2 OPTION 3
PAGE \* MERGEFORMAT 2
OPTION 4 OPTION 5
PAGE \* MERGEFORMAT 2
5. VIEW OF OPTION 4
OPTION 2 OPTION 3
PAGE \* MERGEFORMAT 2
6. VIEW OF OPTION 5
OPTION 2
PAGE \* MERGEFORMAT 2
PAGE \* MERGEFORMAT 2
7. VIEW OF OPTION 6
SUB MENU
OPTION 1
PAGE \* MERGEFORMAT 2
OPTION 2
OPTION 3
PAGE \* MERGEFORMAT 2
OPTION 4
PAGE \* MERGEFORMAT 2
8. VIEW OF OPTION 7
PAGE \* MERGEFORMAT 2
9. TERMINATION OF CODE
PAGE \* MERGEFORMAT 2
Bibliography
PAGE \* MERGEFORMAT 2
Thank
You
PAGE \* MERGEFORMAT 2