Piku
Piku
DAMAN
INTERNSHIP REPORT
AKLAVYA PATHAK
(221423107005)
ON
Submitted by
BACHELOR OF ENGINEERING
in
Computer Engineering
CERTIFICATE
This is to certify that the project report submitted along with the project entitled
Data Analysis Using Python has been carried out by PATEL DAKSH
DECLARATION
I do hereby solemnly declare that the work presented in this Internship / Project
report entitled Data Analysis Using Python has been carried out by me
and has submitted in partial fulfillment for the degree of Bachelor of Engineering in
Under the supervision of Mrs. Hemali J. Damania and that no part of this report has
been directly copied from any students' reports or taken from any other source,
Daman. Your leadership and vision have been a constant source of inspiration,
invaluable support and mentorship provided by the Head of the Department and the
Librarian.
I am immensely grateful for your guidance and support as my internal guide Mrs.
but have also inspired me to explore new perspectives within the field. The patience
Table of contents I
I
I
Internship Certificates I
V
Acknowledgement V
I
1 Chapter 1: Introduction to Industry 1
.
2 Chapter 2: Details of Internship 2
.
3 Chapter 3: Skill developed during Internship 1
. 2
4 Chapter 4: Conclusion 1
. 3
List of figures
Sr 11t Page
No. 1e No.
1 Introduction to Python Day-1
• 1.1: Arithmetic Operators 2-3
• 3.2: Tuple
• 3.3 Dictionary
4 Python Programming Day-4
7
• 4.1: Loops
5 Python Programming Day-5
8-9
• 5.1: Functions in Python.
6 Python Programmmg Day-6
9
• 6.1: Class and Methods in Python
7 Python Libraries Day-7to9
10
• NumPy and Pandas
8 Python Libraries Day-lOtol 1
11
• Matplotlib
Chapter 1: Introduction to Industry
Name of Industry: National Institute of Electronics and Information Technology (NIELIT)
Daman
About:
National Institute of Electronics & Information Technology (NIELIT),(erstwhile DOEACC
Society), an Autonomous Scientific Society under the administrative control of Ministry of
Electronics & Information Technology (MoE&IT), Government of India, was set up to
carry out Human Resource Development and related activities in the area of Information,
Electronics & Communications Technology (IECT). NIELIT is engaged both in Formal &
Non-Formal Education in the area of IECT besides development of industry oriented quality
education and training programmes in the state-of-the-art areas. NIELIT.has endeavoured to
establish standards to be the country's premier institution for Examination and Certification
in the field of IECT. It is also one of the National Examination Body, which accredits
institutes/organizations for conducting courses in IT in the non-formal sector.
Chapter 2: Details of Internship
Company: National Institute of Electronics & Information Technology (NIELIT) Duration:
27-07-2023 to 10-08-2023
Location: NIELIT Daman, Govt. Polytechnic Building Varkund, Nani Daman - 396210
Day-1
Date DESCRIPTION OF WORK DONE IN BRIEF
Introduction of python
In f 4] ; llliil .:::50
lll,.ll!l2 = 5
tt AddHtor,
SLJIII r·esul L " rlu + 11u 2
printcsum.:.,, sum_r-e:sult) it
Subt=i·t iu,i
diff_result = numl - numi2 printCDiffcr
ncc:··, diff_rc ult) tt Mut tip l ication
prod_H!sult - numl • num,2:
pri nt( l'roourt: ", prod_result)
ll TJ1.vi�1.nn
quo_result " ttumcL/ nuill.2 print
(a JOti ent : ", quo_!resu1t) # Floor
Oiv"i.sion
floor·_quo_r-e ult " nwnl / I nLI"n2 printCFloor
Quotient:··, f·loor_goo_result} it ,kttlu[u!;
r ainder = nulld % n . 2
print CRem indc r :··, re!Dilittdcr)
It !:xpammtiat·icm
cxp_rcsult " ttu1111 numJ: °
print(• xponen tia Lian:", exp_result)
Sium: 55
l)iff PN>IJKf' l 4
Product : 250
Quotient; 10.0
Floor Ql!ot:ient: 10
R!!c!ni3lF1der; 0
Exponentiat· on : n25'00000
File Edit View Insert Cell Kernel Widgets Help Trusted ., I Python 3 (ipykernel) 0
Integer: 42
Floating-Point Number: 3 .14 string: Hello,
Python!
Boolean: True
8.14
num_float = float(num_str)
print(num_float)
42
42.0
um_int =
int(num)
print(num_int)
string in details
1) string methods
File Edit View Insert Cell Kernel Widgets Trusted , I Python 3 (ipykernel) O
lgJ + ll<t i'el ++► Run ■ C .. Code In [17]: text = "Hello, World!" V lci;;j)
character: H
DAY-3
Date DESCRIPTION OF WORK DONE IN BRIEF
31/07/2023 Continue Python leaning and practise
New Topics are start in this day
Topics Name:
in Python
Dictionary in python
File Edit View Insert Cell Kernel Widgets Help Trusted I Python 3
(ipykernel) 0
JgJ + l'el ++► Run ■ C .. Code
In [30]: fruits.remove('apple')
print ("After remove:", fruits)
After remove: [ 'banana', 'kiwi', 'cherry', 'apple', 'orange', 'grape']
In [32]: fruits.sort()
In [33]: fruits.reverse()
print("After reverse:", fruits)
After reverse: ['orange', 'kiwi', grape', 'cherry', 'banana', 'apple']
File Edit View Insert Cell Kernel Widgets Help Trusted , I Python 3
(ipykernel) 0
jg) + t'el ++► Run ■ C .. Code
the tuple: 5
In [ ]:
File Edit View Insert Cell Kernel Widgets Help Not Trusted , I Python 3
(ipykernel) C
jg) + t'el ++► Run ■ C .. Code
In [8]: uppercase_data = {}
for key, value in data. i terns(): uppercase_data[key] =
value. upper()
In [10]: lowercase_data = {key: value.lower() for key, value in data.items()} print("Lowercase Data:",
lowercase_data)
Lowercase Data: {'name' : 'harshal', 'age' : '20', 'city' : 'valsad'}
In [11]: capitalized_data = {key: value.capitalize() for key, value in data.items()} print ("Capitalized Data:",
capitalized_data)
Capitalized Data: {'name' : 'Harsha!', 'age' : '20', 'city' : 'Valsad'}
In [13]: replacement_data = {key: value.replace("a", "X") for key, value in data.items()} print("Replacement Data: ",
replacement_data)
loop
while loop
Range in loop
-; JUpyter HarshalPatel LastCheckpoint1211112O22 (autosaved) - JUpyter HarshalPatel Last Checkpoml 12/11/2022 (unsaved changes)
File Edrt View Insert Cell Kernel Help File Edit View Insert Cell
Widgets Kernel Widgets Help
++► Run ■ C .. +
for
Code num
in
range
{0,
10,
In [14]: print{"For Loop:") 2):
if num < 5:
for i in range(l, p
ri
6): if i % 2 == n
0: t(
print(f"{i} is even") f
else: "
print(f"{i} is odd") {
n
For Loop: u
1 is odd m
}
2 is even is
3 is odd le
4 is even s
5 is odd s
t
h
a
In [15): print("\nWhile Loop:") n
5
counter = 1 "
while counter <= 5: )
if counter % 2 == 0: else:
print(f"
print(f"{counter} is {num}
is
even") greater
else: than or
print(f"{counter} is odd") equal to
5")
counter += 1
Looping using Range:
While Loop: 0 is less than 5
1 is odd 2 is less than 5
2 is even 4 is less than 5
3 is odd 6
4 is even
5 is odd
i
s
g
r
e
a
t
e
r
t
h
a
n
o
r
e
q
u
a
l
t
o
i
s
g
r
e
a
t
e
r
t
h
a
n
o
r
e
q
u
a
l
t
o
In
[17)
:
prin
t("\
ntle
sted
If:")
for i
in
rang
e(1,
6) :
if i X 2 == 0:
if i X 3 == 0:
prin
t(f"
{i}
is
eve
n
and
divi
sibl
e by
3")
else:
print(f"{
i} is
even but
not
divisible
by 3")
else:
p
r
i
n
t
(
f
"
{
i
}
i
s
o
d
d
"
)
Nested If:
1 is odd
2 is even but not divisible by 3
3 is odd
4 is even but not divisible by 3
5 is odd
Defining Function
length Arguments
Lambda function
practice program
File Edit V111w Insert Cell Kernel Widgets Help FIie Edit V10w Insert Cell Kernel Widgets Help
In[2]: 1=13
w=23
areal = cal(l,w) Harsha! Coding IS Good Rinkesh Go
print(areal) back
299
print(valu )
length*width length = 4
Local vairable and Globle varibale
width =In54[•]: name = "Patel· II glable vorible
In (13]: data= [(2,7),(23,3598),(242,435),(24343,57574)]
def bad():
print('"hello", name) #hello is a local vaMable
sorted_data = sorted(data, key=lambda x:x[l]) print(sorted_data) bad()
print("outside function name : ", name)
((2, 7), (242, 435), (23, 3598), (24343, 57574)]
practice program
Pass by value and Pass By refreance
In [*]: llodd and even
def chack(number):
In (14]: def modi(c): llta modify value if number X 2 ==0:
print("the number is odd ")
X = c+l value=5 else:
print("The number is even ")
modi(value) print(value)
num =
int(input("Ente
Tn r1 l: dl>f modifv list/1st\: ltnn.s.s hv r a number "))
rP-frnnrP result =
chack(nwa)
nrint(f"fnuml is a frpsultl"\
Day-6
Methods: appended(),copy
(),index(),count(),extend(), etc.
class
Exception handling
File handling
t
e
x
t
=
f
i
l
e
.
r
e
a
d
(
)
p
r
i
n
t
(
t
e
x
t
)
file.close()
In (9]: file = open("c: \\Users\\har hal patel\\DOwnloads\\sem 6\\har halpatel. txl", ·r+·)
Itta read document
text= file.write(".ok:y ")
t
e
x
t
f
i
l
e
.
r
e
a
d
(
)
p
r
i
n
t
(
t
e
x
t
)
file. close()
y on web these countries & regions.
Latest updates custom instructions for chatGPT Jul 20,
2023 Introducing the chatGPT app for ios May 18, 2023 New
ways to .• other content from openai. com
!)manipulating data
Ill
Inlll:1-f"tpandas11pd N.ame Age a.net., 5.iary Depanntent Experienu Educ.,don
a=pd.read_csv('f"IIIJ)oyee_data.csv') 1n[6j: fc•a[a['DcpJrtMcnt·],.='Finance·]
a.head() fe.hHd()
E_..,. Outf•l:
Name Age- Gender Salary Df.panment Expe,rtence Edueadon
N.lme Age Gfflder Salary O.p1nment E.xperience Edueatlon
e:n,,,_.,.
In l•J: ad••l('..- ,·s.1ary"JJ
0
ad.head()
Jn[7J:
In[2): a.info fe=•l•l"Oepartment·
a.head() J==
·•1nonc,·J(l°Aee·,·s.
,tary·JJ fe.head()
Outf7]:
OUtlJ): 2CNll'ie75000
N.ame Ag• Gendu Salary OepanmeM E.'tlpeMnce Education
l0awl4SOOO
; JUpyter harshal L1:1slChet-kpa;nl 13minulssago (11utosav1:1d) JUpyter harshal I est Che int·14 minutes 990 (autOMlved) Jupyter harshal LastChedtpoml 15m1nuteSWiJ0 (aulosa11ed)
file E-d1t Vtt1w lnse1t CeU Kemel Widgets Help fde Edd Yrew Insert Cell Kernei Widgets H8',
File Edil VteW tnsen. C.. Kernel w Holp
+ t< " ++ ►
Run ■ C ._ Codo In [25]: dfea.fillna({'oepart•mt':'unknow'})
Jn [11J: an=•lC•l"DPp•rt•nt·J='HR")l(a["Ae•·J,lff)j df.head()
In(O]: fo•a[a['Expcrioncc•J>5Jl[ t1"'c']J
0
an.heild()
fo.hcad
() 0Ut[25]
OUt(ll]:
N.am• AQ• Gender 5.abry O.partmern !Mnce Education
0Ul[9]:
In[1S3]; r::d(d['t,•..1.isln(f'Thvmd!.0,'Zdn(!'])J
out[J>J[:
an,a[(a["Ocp,rtaont'J=·Flnan<o")l(•['salary']>=OOOOO)&(a[·s.1ary']<•70000)] In[B]:
an.hc>d() In (27): dbaa('S>bry'J... x()
dvsa.fillna({'Salary':'11ax')) dv.head()
<
M
( <Nl[ll]:
l
J
]
,
Nam•
Sal ,yAg • Gendff
0.panm.nt
!,cperienu l!
duu,DOn
DAY- 10 to 11
Date DESCRIPTION OF WORK DONE IN BRIEF
09/08/2023
to Last day of internships
graph
lrl\ L
4 Jn IM,J: rnrtr n �ttr•r- 11l11t la vl'\'61i1r w rrlqfU,,:,,.hip hrli.<t'rr, ,.,,. Mid,;r1/4ry
t j1ll.•:rnlkr(d-1l»t'.:.P,t•'j,cL1l;,J',,,1.1t•y'I) i,lt.:dabel(' e')
rn(S]J:•creoreoptecoot: ) p.lt.ylabel(' bry) pll.tillt("..,.,,.,,-;_ ...;1!,lf1'0)
: j1ll.•:h1M(}
3
plt.pie(dept_count, labeh "dept_count.illdex, autopct:"l1.1ru·, startang,le::148) V
L
,
s
a
l
a
r
y
.
p
l
o
t
(
k
i
n
d
:
,
'
1
M
f
''
)
p
l
t
1 .
1
1
1
1
.
,
l
(
'
n
,
,
p
.
i
r
l
m
m
t
'
)
p
l
l
.
y
f
:
l
l
1
1
•
l
(
'
.
=
i
y
,
-
J
f
.
l
'
!
'
>
.
1
,
:
u
-
y
'
)
plt.title{'twr.,;es..laryofDeputa!nt')
plt.shOI.()
Aoevs S&lllry
Chapter 3: Skill developed during Internship
Python Programming:
Describe how your understanding of Python evolved during the internship.
Highlight any specific programming challenges you faced and how you overcame them.
Pandas Library:
Explain your familiarity with the Pandas library, its key components, and its importance in
data analysis.
Provide examples of how you used Pandas to manipulate and analyse data.
Matplotlib Library:
Discuss your experience with data visualization using Matplotlib.
Showcase various types of plots and graphs you created to visualize data patterns.
Transferable Skills:
Discuss how the skills you acquired during your internship are transferable to other domains
and roles.
Emphasize skills like communication, problem-solving, project management, and teamwork.
Chapter 4: Conclusion