-
Notifications
You must be signed in to change notification settings - Fork 0
/
prediction_of_career.py
1302 lines (1236 loc) · 41.6 KB
/
prediction_of_career.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# In[1]:
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import accuracy_score
import json
import difflib
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import pandas as pd
import matplotlib.pyplot as plt
import pymongo
import os
# In[2]:
client = pymongo.MongoClient(
"mongodb+srv://harshil:shanu123@pragati.oeap8sk.mongodb.net/test")
mydb = client["pragati"]
mycol = mydb["growth_rate"]
filcol = mycol.find()
# lisst of skills
skill = ['Accounting',
'Accounting and analytical software',
'Accounting and banking software',
'Accounting software',
'Active learning',
'Active listening',
'Adaptability',
'Adaptable',
'Adaptive',
'Administration',
'Advanced numeracy',
'Alertness',
'Analytical',
'Analytical and scientific software',
'Analytical software',
'Analytical thinking',
'Analytical-oriented',
'Anatomy',
'Approachableness',
'Arm-hand steadiness',
'Art and design software',
'Artistic',
'Artistic ability',
'Assertive',
'Assertiveness',
'Athleticism',
'Attention detail',
'Attention to detail',
'Auditory attention',
'Basic math comprehension',
'Biology',
'Biology and chemistry',
'Biology and ecology',
'Bookkeeping',
'Budget management',
'Budgeting',
'Building and construction',
'Building and safety codes',
'Building codes',
'Business',
'Business acumen',
'Business management',
'Cad software',
'Calendar and scheduling software',
'Call centre software',
'Cataloguing and database software',
'Chemistry',
'Chemistry and physics',
'Cms software',
'Coaching',
'Collaboration',
'Colour vision',
'Commercial awareness',
'Commitment',
'Communication',
'Communications and media',
'Compassion',
'Compassionate',
'Complex mathematics',
'Compliance software',
'Computer',
'Computer aided design (cad) software',
'Computer engineering',
'Computer knowledge',
'Computer literacy',
'Computer software',
'Computer-assisted translation software',
'Concentration',
'Confidence',
'Conflict resolution',
'Consistent',
'Contract and import laws',
'Cooperation',
'Cooperative',
'Coordination',
'Court procedures',
'Creative',
'Creative thinking',
'Creativity',
'Criminal justice',
'Critical reasoning',
'Critical thinking',
'Crm software',
'Cultural awareness',
'Curiosity',
'Customer service',
'Customs and environmental regulations',
'Data and financial analysis software',
'Data entry',
'Data-driven',
'Data-focused',
'Database and spreadsheet software',
'Database management software',
'Database software',
'Decision making',
'Decision-making',
'Dedicated',
'Dedication',
'Deductive reasoning',
'Dependability',
'Dependable',
'Design',
'Design and sewing',
'Design software',
'Detail-oriented',
'Determination',
'Determined',
'Dexterity',
'Dexterous',
'Digital media',
'Diplomacy',
'Discipline',
'Discretion',
'Dramatic arts',
'Economics',
'Editing',
'Education and instruction',
'Education and training',
'Emotional control',
'Emotional intelligence',
'Empathy',
'Endurance',
'Energetic',
'Energy',
'Engineering',
'Engineering and technology',
'English language',
'English spelling and grammar',
'Enthusiasm',
'Environmental laws',
'Environmental science',
'Ethical hacking',
'Etiquette',
'Facilities management software',
'Far vision',
'Film editing equipment',
'Film editing software',
'Financial software',
'Fine arts',
'Fire safety codes and laws',
'First aid',
'Fiscal management',
'Flexibility',
'Fluency of ideas',
'Food production',
'Food production and safety',
'Foreign language',
'Foreign languages',
'Friendliness',
'Friendly',
'Geographical knowledge',
'Geography',
'Good eyesight',
'Good judgment',
'Good memory',
'Good vision',
'Government regulations',
'Grammar and spelling',
'Graphics and photo imaging software',
'Graphics software',
'Hand-eye coordination',
'Handle stress',
'Hearing sensitivity',
'History and archaeology',
'History and economics',
'Honesty',
'Honesty and integrity',
'Housing laws',
'Hr and employment law',
'Hr software',
'Improvisation',
'Independence',
'Independent',
'Independent thinking',
'Inductive reasoning',
'Industrial control software',
'Industry regulations and laws',
'Information ordering',
'Information retrieval software',
'Initiative',
'Innovation',
'Instructing',
'Instruction',
'Instructional',
'Integrity',
'Interpersonal',
'Interpersonal skills',
'Interviewing',
'Inventory management software',
'It skills',
'Judgement',
'Judgment',
'Lab and farm equipment',
'Law and government',
'Laws and government',
'Leadership',
'Legal databases',
'Legal knowledge',
'Listening',
'Literacy',
'Logical reasoning',
'Logical thinking',
'Management',
'Management software',
'Managing',
'Manual dexterity',
'Mapping software',
'Marketing',
'Marketing software',
'Mathematical',
'Mathematical reasoning',
'Mathematics',
'Mathematics and accounting',
'Maths',
'Mechanical',
'Mechanical design and repair',
'Mechanical drawing',
'Medical software',
'Medicine',
'Medicine and dentistry',
'Memorisation',
'Mental endurance',
'Methodical',
'Methodological',
'Microbiology',
'Monitoring',
'Motivated',
'Motivation',
'Motivational',
'Motivational nature',
'Multitasking',
'Music and sound editing software',
'Music editing software',
'Musical talent',
'Navigation',
'Near vision',
'Negotiation',
'Networking',
'Neuroscience',
'Neutrality',
'Notetaking',
'Numeracy',
'Numerical',
'Numerical reasoning',
'Nutrition',
'Objectivity',
'Observation',
'Observational',
'Operations analysis',
'Oral expression',
'Organisation',
'Organisational',
'Originality',
'Outdoor survival',
'Passion',
'Patience',
'Perseverance',
'Persistence',
'Personal responsibility',
'Personnel and human resources',
'Persuasion',
'Physical condition',
'Physical coordination',
'Physical fitness',
'Physical fitness and strength',
'Physical stamina',
'Physical strength',
'Physically fit',
'Physics',
'Physiology',
'Planning',
'Pos software',
'Precision',
'Preparedness',
'Presentation and conferencing software',
'Prioritising',
'Problem sensitivity',
'Problem solving',
'Problem-solving',
'Product knowledge',
'Production and processing',
'Professionalism',
'Program testing software',
'Programming',
'Project management',
'Project management software',
'Promotional',
'Psychology',
'Public safety',
'Public safety and security',
'Public speaking',
'Punctual',
'Quick thinking',
'Reading',
'Reading comprehension',
'Recipe and menu software',
'Recordkeeping',
'Reliability',
'Research',
'Researching',
'Resilience',
'Resourceful',
'Resourcefulness',
'Respectfulness',
'Responsible',
'Responsiveness',
'Rhythm',
'Risk management',
'Risk management and assessment',
'Robustness',
'Safety management',
'Safety standards',
'Safety-conscious',
'Sales',
'Sales and marketing',
'Sales software',
'Scheduling and database software',
'Science',
'Scientific and medical software',
'Scientific knowledge',
'Scientific software',
'Selective attention',
'Self-confidence',
'Self-discipline',
'Self-motivation',
'Self-sufficiency',
'Service orientation',
'Situational awareness',
'Social awareness',
'Social media',
'Social orientation',
'Social perception',
'Social perceptiveness',
'Sociology',
'Speaking',
'Speech clarity',
'Stamina',
'State and federal regulations',
'Strategic',
'Strength',
'Strength and coordination',
'Stress tolerance',
'Supervision',
'Survival and tactical skills',
'Swimming',
'Systems analysis',
'Tax and spreadsheet software',
'Tax laws',
'Teaching',
'Team member',
'Team working',
'Teamwork',
'Tech savviness',
'Tech-savviness',
'Tech-savvy',
'Technical',
'Technical aptitude',
'Technical writing',
'Telecommunications',
'Therapy and counselling',
'Tidiness',
'Time management',
'Tolerance',
'Tour management software',
'Transcribing',
'Transcription',
'Troubleshooting',
'Trustworthiness',
'Trustworthy',
'Typing',
'Us law',
'Vigilance',
'Vision',
'Visionary',
'Visual',
'Visualisation',
'Webpage design',
'Word processing',
'Word processing software',
'Work well under stress',
'Workflow software',
'Writing']
# In[3]:
l2 = []
for x in range(0, len(skill)):
l2.append(0)
# In[4]:
# list of jobs
jobs = ['Mayor',
'Advertising Account Executive',
'Advertising Manager',
'Petroleum Engineer',
'Promotions Manager',
'Dentist',
'Psychiatrist',
'Pr Manager',
'Airline Pilot',
'Chief Executive',
'Financial Manager',
'Lawyer',
'Green Marketer',
'Surgeon',
'Marketing Manager',
'Compensation Manager',
'Astronaut',
'Hr Manager',
'Broadcast News Analyst',
'Training & Development Manager',
'Physicist',
'Judge',
'Palaeontologist',
'Geoscientist',
'Purchasing Manager',
'Actuary',
'Air Traffic Controller',
'Postsecondary Teacher',
'Sales Manager',
'Art Director',
'Chemical Engineer',
'Film & Video Editor',
'Financial Analyst',
'Systems Software Developer',
'Astronomer',
'Administrative Services Manager',
'Sales Engineer',
'Director',
'Producer',
'Talent Director',
'Computer Network Architect',
'Aerospace Engineer',
'Construction Manager',
'Veterinarian',
'Nuclear Engineer',
'Pharmacist',
'Logistics Manager',
'Transportation Manager',
'Information Security Analyst',
'Fashion Designer',
'Musician',
'Acquisitions Manager',
'Electrical Engineer',
'Management Analyst',
'Singer',
'Chiropractor',
'Maritime Pilot',
'Web Administrator',
'It Project Manager',
'Database Architect',
'Principal',
'Civil Engineer',
'Product Safety Engineer',
'Fitness & Wellness Coordinator',
'QA Engineer',
'Intelligence Analyst',
'Database Administrator',
'Architect',
'Aquacultural Manager',
'Nursery Manager',
'Mechanical Engineer',
'Environmental Engineer',
'Farm Manager',
'Water Engineer',
'Computer Programmer',
'Gaming Manager',
'Microbiologist',
'Industrial Engineer',
'Loan Officer',
'Actor',
'Insurance Sales Agent',
'Web Developer',
'Animator',
'Sustainability Specialist',
'Investment Underwriter',
'Auditor',
'Labour Relations Specialist',
'Accountant',
'Writer',
'Occupational Therapist',
'Market Research Analyst',
'Food Scientist',
'Audiologist',
'Editor',
'Nuclear Technician',
'Technical Writer',
'Urban Planner',
'Animal Scientist',
'Landscape Architect',
'Music Director',
'Real Estate Sales Agent',
'Pr Specialist',
'Midwife',
'Coroner',
'Licensing Examiner',
'Composer',
'Industrial Designer',
'Power Plant Operator',
'Nurse',
'Customs Inspector',
'Police Officer',
'Court Reporter',
'Retail Buyer',
'Exhibit Designer',
'Fine Artist',
'Zoologist',
'Athlete',
'Set Designer',
'Camera Operator',
'Surveyor',
'Lodging Manager',
'Reporter',
'Gas Plant Operator',
'Legislator',
'Health Educator',
'Choreographer',
'Locomotive Engineer',
'Special Education Teacher',
'Fundraiser',
'Archaeologist',
'Construction & Building Inspector',
'Fire Investigator',
'Electronics Engineering Technician',
'Electrician',
'Elementary School Teacher',
'Career Counsellor',
'Plumber',
'Interior Designer',
'Radio & Tv Announcer',
'Librarian',
'Middle School Teacher',
'Food Service Manager',
'Translator',
'Robotics Technician',
'Firefighter',
'Forester',
'Graphic Designer',
'Dietitian',
'Event Planner',
'Wind Turbine Service Technician',
'Dancer',
'Carpenter',
'Tax Preparer',
'Paralegal',
'Marriage & Family Therapist',
'Social Worker',
'Chef',
'Flight Attendant',
'Fish & Game Warden',
'Chemical Technician',
'Bailiff',
'Massage Therapist',
'Sports Coach',
'Sports Scout',
'Art Therapist',
'Correctional Officer',
'Fitness Trainer',
'Photographer',
'Substance Abuse Counsellor',
'Mental Health Counsellor',
'Athletic Trainer',
'Radio Operator',
'Craft Artist',
'Automotive Service Technician',
'Freight Forwarder',
'Animal Breeder',
'Community Health Worker',
'Travel Agent',
'Machinist',
'Food Science Technician',
'Agricultural Technician',
'Legal Secretary',
'Rehabilitation Counsellor',
'Spa Manager',
'Machine Assembler',
'Medical Appliance Technician',
'Skincare Specialist',
'Roustabout',
'Umpire',
'Paramedic',
'Correspondence Clerk',
'Information Clerk',
'Administrative Assistant',
'Animal Trainer',
'Patient Representative',
'Preschool Teacher',
'Customer Service Representative',
'Dressmaker',
'Tailor',
'Office Clerk',
'Beautician',
'File Clerk',
'Veterinary Technician',
'Veterinary Technologist',
'Security Guard',
'Concierge',
'Hairdresser',
'Merchandise Displayer',
'Tour Guide',
'Sports Book Writer',
'Bartender',
'Retail Salesperson',
'Telemarketer',
'Floral Designer',
'Baker',
'Laboratory Animal Caretaker',
'Teller',
'Veterinary Assistant',
'Non Farm Animal Caretaker',
'Lifeguard',
'Gaming Dealer',
'Childcare Worker',
'Nail Technician',
'Criminal Investigator',
'Armoured Assault Vehicle Crew',
'Tutor',
'Radar & Sonar Operator',
'Aircrew Member',
'Artillery & Missile Crew Member',
'Proofreader',
'Command & Control Specialist',
'Wind Energy Engineer',
'Special Forces Officer',
'Infantry']
# In[5]:
tr = pd.read_csv("final_dataset.csv")
tr.replace({'jobs': {'Mayor': 0,
'Advertising Account Executive': 1,
'Advertising Manager': 2,
'Petroleum Engineer': 3,
'Promotions Manager': 4,
'Dentist': 5,
'Psychiatrist': 6,
'Pr Manager': 7,
'Airline Pilot': 8,
'Chief Executive': 9,
'Financial Manager': 10,
'Lawyer': 11,
'Green Marketer': 12,
'Surgeon': 13,
'Marketing Manager': 14,
'Compensation Manager': 15,
'Astronaut': 16,
'Hr Manager': 17,
'Broadcast News Analyst': 18,
'Training & Development Manager': 19,
'Physicist': 20,
'Judge': 21,
'Palaeontologist': 22,
'Geoscientist': 23,
'Purchasing Manager': 24,
'Actuary': 25,
'Air Traffic Controller': 26,
'Postsecondary Teacher': 27,
'Sales Manager': 28,
'Art Director': 29,
'Chemical Engineer': 30,
'Film & Video Editor': 31,
'Financial Analyst': 32,
'Systems Software Developer': 33,
'Astronomer': 34,
'Administrative Services Manager': 35,
'Sales Engineer': 36,
'Director': 37,
'Producer': 38,
'Talent Director': 39,
'Computer Network Architect': 40,
'Aerospace Engineer': 41,
'Construction Manager': 42,
'Veterinarian': 43,
'Nuclear Engineer': 44,
'Pharmacist': 45,
'Logistics Manager': 46,
'Transportation Manager': 47,
'Information Security Analyst': 48,
'Fashion Designer': 49,
'Musician': 50,
'Acquisitions Manager': 51,
'Electrical Engineer': 52,
'Management Analyst': 53,
'Singer': 54,
'Chiropractor': 55,
'Maritime Pilot': 56,
'Web Administrator': 57,
'It Project Manager': 58,
'Database Architect': 59,
'Principal': 60,
'Civil Engineer': 61,
'Product Safety Engineer': 62,
'Fitness & Wellness Coordinator': 63,
'QA Engineer': 64,
'Intelligence Analyst': 65,
'Database Administrator': 66,
'Architect': 67,
'Aquacultural Manager': 68,
'Nursery Manager': 69,
'Mechanical Engineer': 70,
'Environmental Engineer': 71,
'Farm Manager': 72,
'Water Engineer': 73,
'Computer Programmer': 74,
'Gaming Manager': 75,
'Microbiologist': 76,
'Industrial Engineer': 77,
'Loan Officer': 78,
'Actor': 79,
'Insurance Sales Agent': 80,
'Web Developer': 81,
'Animator': 82,
'Sustainability Specialist': 83,
'Investment Underwriter': 84,
'Auditor': 85,
'Labour Relations Specialist': 86,
'Accountant': 87,
'Writer': 88,
'Occupational Therapist': 89,
'Market Research Analyst': 90,
'Food Scientist': 91,
'Audiologist': 92,
'Editor': 93,
'Nuclear Technician': 94,
'Technical Writer': 95,
'Urban Planner': 96,
'Animal Scientist': 97,
'Landscape Architect': 98,
'Music Director': 99,
'Real Estate Sales Agent': 100,
'Pr Specialist': 101,
'Midwife': 102,
'Coroner': 103,
'Licensing Examiner': 104,
'Composer': 105,
'Industrial Designer': 106,
'Power Plant Operator': 107,
'Nurse': 108,
'Customs Inspector': 109,
'Police Officer': 110,
'Court Reporter': 111,
'Retail Buyer': 112,
'Exhibit Designer': 113,
'Fine Artist': 114,
'Zoologist': 115,
'Athlete': 116,
'Set Designer': 117,
'Camera Operator': 118,
'Surveyor': 119,
'Lodging Manager': 120,
'Reporter': 121,
'Gas Plant Operator': 122,
'Legislator': 123,
'Health Educator': 124,
'Choreographer': 125,
'Locomotive Engineer': 126,
'Special Education Teacher': 127,
'Fundraiser': 128,
'Archaeologist': 129,
'Construction & Building Inspector': 130,
'Fire Investigator': 131,
'Electronics Engineering Technician': 132,
'Electrician': 133,
'Elementary School Teacher': 134,
'Career Counsellor': 135,
'Plumber': 136,
'Interior Designer': 137,
'Radio & Tv Announcer': 138,
'Librarian': 139,
'Middle School Teacher': 140,
'Food Service Manager': 141,
'Translator': 142,
'Robotics Technician': 143,
'Firefighter': 144,
'Forester': 145,
'Graphic Designer': 146,
'Dietitian': 147,
'Event Planner': 148,
'Wind Turbine Service Technician': 149,
'Dancer': 150,
'Carpenter': 151,
'Tax Preparer': 152,
'Paralegal': 153,
'Marriage & Family Therapist': 154,
'Social Worker': 155,
'Chef': 156,
'Flight Attendant': 157,
'Fish & Game Warden': 158,
'Chemical Technician': 159,
'Bailiff': 160,
'Massage Therapist': 161,
'Sports Coach': 162,
'Sports Scout': 163,
'Art Therapist': 164,
'Correctional Officer': 165,
'Fitness Trainer': 166,
'Photographer': 167,
'Substance Abuse Counsellor': 168,
'Mental Health Counsellor': 169,
'Athletic Trainer': 170,
'Radio Operator': 171,
'Craft Artist': 172,
'Automotive Service Technician': 173,
'Freight Forwarder': 174,
'Animal Breeder': 175,
'Community Health Worker': 176,
'Travel Agent': 177,
'Machinist': 178,
'Food Science Technician': 179,
'Agricultural Technician': 180,
'Legal Secretary': 181,
'Rehabilitation Counsellor': 182,
'Spa Manager': 183,
'Machine Assembler': 184,
'Medical Appliance Technician': 185,
'Skincare Specialist': 186,
'Roustabout': 187,
'Umpire': 188,
'Paramedic': 189,
'Correspondence Clerk': 190,
'Information Clerk': 191,
'Administrative Assistant': 192,
'Animal Trainer': 193,
'Patient Representative': 194,
'Preschool Teacher': 195,
'Customer Service Representative': 196,
'Dressmaker': 197,
'Tailor': 198,
'Office Clerk': 199,
'Beautician': 200,
'File Clerk': 201,
'Veterinary Technician': 202,
'Veterinary Technologist': 203,
'Security Guard': 204,
'Concierge': 205,
'Hairdresser': 206,
'Merchandise Displayer': 207,
'Tour Guide': 208,
'Sports Book Writer': 209,
'Bartender': 210,
'Retail Salesperson': 211,
'Telemarketer': 212,
'Floral Designer': 213,
'Baker': 214,
'Laboratory Animal Caretaker': 215,
'Teller': 216,
'Veterinary Assistant': 217,
'Non Farm Animal Caretaker': 218,
'Lifeguard': 219,
'Gaming Dealer': 220,
'Childcare Worker': 221,
'Nail Technician': 222,
'Criminal Investigator': 223,
'Armoured Assault Vehicle Crew': 224,
'Tutor': 225,
'Radar & Sonar Operator': 226,
'Aircrew Member': 227,
'Artillery & Missile Crew Member': 228,
'Proofreader': 229,
'Command & Control Specialist': 230,
'Wind Energy Engineer': 231,
'Special Forces Officer': 232,
'Infantry': 233}}, inplace=True)
tr
# In[6]:
df = pd.read_csv("final_dataset.csv")
df.replace({'jobs': {'Mayor': 0,
'Advertising Account Executive': 1,
'Advertising Manager': 2,
'Petroleum Engineer': 3,
'Promotions Manager': 4,
'Dentist': 5,
'Psychiatrist': 6,
'Pr Manager': 7,
'Airline Pilot': 8,
'Chief Executive': 9,
'Financial Manager': 10,
'Lawyer': 11,
'Green Marketer': 12,
'Surgeon': 13,
'Marketing Manager': 14,
'Compensation Manager': 15,
'Astronaut': 16,
'Hr Manager': 17,
'Broadcast News Analyst': 18,
'Training & Development Manager': 19,
'Physicist': 20,
'Judge': 21,
'Palaeontologist': 22,
'Geoscientist': 23,
'Purchasing Manager': 24,
'Actuary': 25,
'Air Traffic Controller': 26,
'Postsecondary Teacher': 27,
'Sales Manager': 28,
'Art Director': 29,
'Chemical Engineer': 30,
'Film & Video Editor': 31,
'Financial Analyst': 32,
'Systems Software Developer': 33,
'Astronomer': 34,
'Administrative Services Manager': 35,
'Sales Engineer': 36,
'Director': 37,
'Producer': 38,
'Talent Director': 39,
'Computer Network Architect': 40,
'Aerospace Engineer': 41,
'Construction Manager': 42,
'Veterinarian': 43,
'Nuclear Engineer': 44,
'Pharmacist': 45,
'Logistics Manager': 46,
'Transportation Manager': 47,
'Information Security Analyst': 48,
'Fashion Designer': 49,
'Musician': 50,
'Acquisitions Manager': 51,
'Electrical Engineer': 52,
'Management Analyst': 53,
'Singer': 54,
'Chiropractor': 55,
'Maritime Pilot': 56,
'Web Administrator': 57,
'It Project Manager': 58,
'Database Architect': 59,
'Principal': 60,
'Civil Engineer': 61,
'Product Safety Engineer': 62,
'Fitness & Wellness Coordinator': 63,
'QA Engineer': 64,
'Intelligence Analyst': 65,
'Database Administrator': 66,
'Architect': 67,
'Aquacultural Manager': 68,
'Nursery Manager': 69,
'Mechanical Engineer': 70,
'Environmental Engineer': 71,
'Farm Manager': 72,
'Water Engineer': 73,
'Computer Programmer': 74,
'Gaming Manager': 75,
'Microbiologist': 76,
'Industrial Engineer': 77,
'Loan Officer': 78,
'Actor': 79,
'Insurance Sales Agent': 80,
'Web Developer': 81,
'Animator': 82,
'Sustainability Specialist': 83,
'Investment Underwriter': 84,
'Auditor': 85,
'Labour Relations Specialist': 86,
'Accountant': 87,
'Writer': 88,
'Occupational Therapist': 89,
'Market Research Analyst': 90,
'Food Scientist': 91,
'Audiologist': 92,
'Editor': 93,
'Nuclear Technician': 94,
'Technical Writer': 95,
'Urban Planner': 96,
'Animal Scientist': 97,