daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 66 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. occupation_mapping = {
  2.     'Associate Professional/Technician/Asst/Supervisor/Executive/Officer - Legal': 'Associate Professional',
  3.     'Associate Professionals, Administrative/Specialized - Administrative Officer/Executive': 'Associate Professional',
  4.     'Associate Professionals, Administrative/Specialized - Administrative/Executive Secretaries': 'Associate Professional',
  5.     'Associate Professionals, Administrative/Specialized - Others': 'Associate Professional',
  6.     'Associate Professionals, Artistic and Cultural - Interior Designers/Decorators': 'Associate Professional',
  7.     'Associate Professionals, Artistic and Cultural - Photographers': 'Associate Professional',
  8.     'Associate Professionals, Business/Admin, Financial/Mathematical - Accounting Officer/Executive': 'Associate Professional',
  9.     'Associate Professionals, Business/Admin, Financial/Mathematical - Credit/Loans/Financing Officers/Ex': 'Associate Professional',
  10.     'Associate Professionals, Business/Admin, Financial/Mathematical - Securities/Finance Dealers/Stock/I': 'Associate Professional',
  11.     'Associate Professionals, Business/Admin, Financial/Mathematical - Statistical/Mathematical/Actuarial': 'Associate Professional',
  12.     'Associate Professionals, Business/Admin, Sale/Purchase Agents/Brokers - Business Services': 'Associate Professional',
  13.     'Associate Professionals, Business/Admin, Sale/Purchase Agents/Brokers - Buyers': 'Associate Professional',
  14.     'Associate Professionals, Business/Admin, Sale/Purchase Agents/Brokers - Commercial Sales': 'Associate Professional',
  15.     'Associate Professionals, Business/Admin, Sale/Purchase Agents/Brokers - Insurance': 'Associate Professional',
  16.     'Associate Professionals, Business/Admin, Sale/Purchase Agents/Brokers - Trade Brokers': 'Associate Professional',
  17.     'Associate Professionals, Culinary - Chefs/Other Related': 'Associate Professional',
  18.     'Associate Professionals, Regulatory Government - Others (Fireman/Prison/Maritime Asst. Superintenden': 'Associate Professional',
  19.     'Associate Professionals, Regulatory Government - Police Officers (L/Corporal to Sub Inspectors)': 'Associate Professional',
  20.     'Associate Professionals, Sports/Self-Defence/Fitness - Atheletes/Sports Players': 'Associate Professional',
  21.     'Associate Professionals, Sports/Self-Defence/Fitness - Fitness/Recreation Instructors/Program Leader': 'Associate Professional',
  22.     'Associate Professionals, Sports/Self-Defence/Fitness - Sports Coaches/Instructors/Officials': 'Associate Professional',
  23.     'Associate Professionals/Assistants/Supervisors, Regulatory Government - Customs/Border Inspectors (I': 'Associate Professional',
  24.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Dental and Therapists Nurse/e': 'Associate Professional',
  25.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Medical Asst/radiograph/elect': 'Associate Professional',
  26.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Medical Records/Health Info/L': 'Associate Professional',
  27.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Nursing/Midwifery': 'Associate Professional',
  28.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Others': 'Associate Professional',
  29.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Physiotherapy/Electrotherapis': 'Associate Professional',
  30.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Health - Traditional/Complementary Med': 'Associate Professional',
  31.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Science/Engineering - Life Science/bio': 'Associate Professional',
  32.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Science/Engineering - Mining/Manufactu': 'Associate Professional',
  33.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Science/Engineering - Physical/Enginee': 'Associate Professional',
  34.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Science/Engineering - Process Control/': 'Associate Professional',
  35.     'Associate Professionals/Technician/Asst/Supervisor/Executive, Science/Engineering - Ship/Aircraft/Tr': 'Associate Professional',
  36.     'Associate Professionals/Technician/Asst/Supervisor/Executive/Officer - IT & Communication/Broadcasti': 'Associate Professional',
  37.     'Associate Professionals/Technicians/Assistants/Supervisors - Social/Religious/Monk/Nun/Preacher/Bila': 'Associate Professional',
  38.     'Clerical Support Workers - Numerical & Material Recording Clerks': 'Clerical Support Workers',
  39.     'Clerical Support Workers - Other Related Clericals/Customer Services/Tellers/Money Collectors/Casino': 'Clerical Support Workers',
  40.     'Clerical Support Workers, Customer Services/Client Information Workers - Contact/Call Centre Informa': 'Clerical Support Workers',
  41.     'Clerical Support Workers, Customer Services/Client Information Workers - Enquiry Clerks': 'Clerical Support Workers',
  42.     'Clerical Support Workers, Customer Services/Client Information Workers - Receptionists': 'Clerical Support Workers',
  43.     'Clerical Support Workers, Customer Services/Client Information Workers - Telephone Switchboard Opera': 'Clerical Support Workers',
  44.     'Clerical Support Workers, Customer Services/Tellers/Money Collectors - Bank Tellers/Cash Counter/Mon': 'Clerical Support Workers',
  45.     'Clerical Support Workers, Office - General Office Clerks': 'Clerical Support Workers',
  46.     'Clerical Support Workers, Office - Secretaries (General), P.A/Verbatim/Hansard Reporter': 'Clerical Support Workers',
  47.     'Clerical Support Workers, Office/Keyboard Operators - Data Entry Clerks': 'Clerical Support Workers',
  48.     'Professionals, Administration/Policy Analyst/Market/Business Research/Admin Exec/Registrar College/U': 'Professionals',
  49.     'Professionals, Architects/Planners/Surveyors/Designers - Building/Interior': 'Professionals',
  50.     'Professionals, Architects/Planners/Surveyors/Designers - Cartographers/Quantity/Building/Aerial/Land': 'Professionals',
  51.     'Professionals, Architects/Planners/Surveyors/Designers - Landscape': 'Professionals',
  52.     'Professionals, Architects/Planners/Surveyors/Designers - Product/Garment/Cloth': 'Professionals',
  53.     'Professionals, Architects/Planners/Surveyors/Designers - Town/Traffic/Urban/Rural': 'Professionals',
  54.     'Professionals, Business/Administration/Finance - Accountants/Auditor/Tax Colsultant/Liquidator/Chart': 'Professionals',
  55.     'Professionals, Business/Administration/Finance - Financial/Investment Advisors/Planners': 'Professionals',
  56.     'Professionals, Business/Administration/Finance - Financial/Investment Analysts/Executive': 'Professionals',
  57.     'Professionals, Engineer (Incl. Electrotechnology) Industrial/Production/Environmental/Mechanical/Che': 'Professionals',
  58.     'Professionals, Health - Dentists/Dental Surgeon': 'Professionals',
  59.     'Professionals, Health - Medical Doctors, ENT/Anaesthetist/Oncologist/Psychiatrist/Cardiologist/Gynae': 'Professionals',
  60.     'Professionals, Health - Nursing/Midwifery': 'Professionals',
  61.     'Professionals, Health - Others/Veterinarians/Paramedical/Physiotherapist/Therapist/Chiropractor/Diet': 'Professionals',
  62.     'Professionals, Health - Pharmacists': 'Professionals',
  63.     'Professionals, Hospitality/Related Services/Reservation/Reception/Housekeeping/Food & Beverages Supe': 'Professionals',
  64.     'Professionals, IT/Communication Tech - Database/Network - Security Specialist/Others': 'Professionals',
  65.     'Professionals, IT/Communication Tech - Software/System/Application Analysts': 'Professionals',
  66.     'Professionals, IT/Communication Tech - Software/System/Application Developers': 'Professionals',
  67.     'Professionals, IT/Communication Tech - Software/System/Application/Communication/Database Programmer': 'Professionals',
  68.     'Professionals, IT/Communication Tech - System/IT Administrators/Executive': 'Professionals',
  69.     'Professionals, IT/Communication Tech - Web/Internet/Intrandet/Animation/Computer Games/Multimedia De': 'Professionals',
  70.     'Professionals, Legal - Lawyers/Prosecutors/Solicitors/Legal Advisors/Legal Drafters/Legal Officer/Ad': 'Professionals',
  71.     'Professionals, Mathematicians/Actuaries/Statisticians Physical/Social Science/Biometrician/Other Rel': 'Professionals',
  72.     'Professionals, Mining/Manufacturing/Construction/Boiler/Quality Assurance/Contract/Project/Property/': 'Professionals',
  73.     'Professionals, Other Life Science/Biologist/Zoologist/Botanist/Agronomist/Horticultural/Pharmacologi': 'Professionals',
  74.     'Professionals, Other Ship/Aircraft/Train/Locomotive/ERL/LRT/MRT/Monorail Controller/Permanent-way in': 'Professionals',
  75.     'Professionals, Passenger/Cargo Aircraft - Air Pilot/Controller/Flight Navigator/Instructor/Engineer/': 'Professionals',
  76.     'Professionals, Regulatory Government - Police Inspectors/Detectives (Probationary Insp/Inspectors to': 'Professionals',
  77.     'Professionals, Religious - Mufti/Imam/Kadi/Priest': 'Professionals',
  78.     'Professionals, Sales/Marketing/Public Relations/Corporate Comm Exec/Publicity Agent/Sales Representa': 'Professionals',
  79.     'Professionals, Science/Engineering - Chemists/Geochemist/Other Related': 'Professionals',
  80.     'Professionals, Science/Engineering - Geologists/Geophysicists/Mineralogist/Petrologist/Oceanographer': 'Professionals',
  81.     'Professionals, Science/Engineering - Metereologists/Agrometeorologist/Seismologists/Climatologist/ O': 'Professionals',
  82.     'Professionals, Science/Engineering - Physicists, Thermodynamic/Nuclear/Atomic/Molecular/Astronomers/': 'Professionals',
  83.     'Professionals, Ship/Ferry/Vessel Deck Officers - Ship/Ferry Deck Officers/Hovercraft Pilots/Captain/': 'Professionals',
  84.     'Professionals, Ship/Ferry/Vessel Engineers/Controllers - Ship/Marine Engineers/Technical Superintend': 'Professionals',
  85.     'Professionals, Social/Cultural/Authors/Journalists/Linguists - Journalist/Columnist/Political Editor': 'Professionals',
  86.     'Professionals, Social/Cultural/Creative - Film/Stage/Related Directors & Producers/etc': 'Professionals',
  87.     'Professionals, Social/Cultural/Creative/Performing Artists - Musicians/Singers/Composers/Instrumenta': 'Professionals',
  88.     'Professionals, Social/Cultural/Religious - Librarians/Archivists/Curators': 'Professionals',
  89.     'Professionals, Teaching, Lecturers/Tutors/Professor - University/College/Higher Education/Dean/Deput': 'Professionals',
  90.     'Professionals, Teaching, Teachers - Music/Arts/Performing Arts': 'Professionals',
  91.     'Professionals, Teaching, Teachers - Primary School/Early Childhood/Kindergarden/non-graduate teacher': 'Professionals',
  92.     'Professionals, Teaching, Teachers - Secondary Education/Pre-university/Officer, education graduate s': 'Professionals',
  93.     'Professionals, Teaching, Teachers - Technology Skill/Technical Trainers': 'Professionals',
  94.     'Professionals, Teaching, Teachers/Lecturers/Tutors - Others/Home Teachers/Special Need Teachers For': 'Professionals',
  95.     'Craft,Building Finishers/Related Trades Workers - Plumbers and Pipe Fitters': 'Craft',
  96.     'Craft,Electrical/Electronic/Related Trades Workers - Building and Related Electricians': 'Craft',
  97.     'Craft,Electrical/Electronic/Related Trades Workers - Electrical Mechanics/Fitters': 'Craft',
  98.     'Craft,Electronics/Telecommunications/Related Trades Workers - IT & Communication Technology Installe': 'Craft',
  99.     'Craft,Electronics/Telecommunications/Related Trades Workers - Mechanics and Servicers': 'Craft',
  100.     'Craft,Food Processing/Related Trades Workers - Meat/Fish Processing/Related Food Preparers/Butchers': 'Craft',
  101.     'Craft,Metal/Machinery/Blacksmiths/Toolmakers/Related Trades Workers - Metal Working Machine Tool Set': 'Craft',
  102.     'Craft,Metal/Machinery/Blacksmiths/Toolmakers/Related Trades Workers - Others': 'Craft',
  103.     'Craft,Metal/Machinery/Mechanics & Repairers/Related Trades Workers - Agricultural/Industrial Machine': 'Craft',
  104.     'Craft,Metal/Machinery/Mechanics & Repairers/Related Trades Workers - Motor Vehicle': 'Craft',
  105.     'Craft,Metal/Machinery/Mechanics & Repairers/Related Trades Workers - Others': 'Craft',
  106.     'Craft,Metal/Machinery/Sheet/Structural Metal/Moulders/Welders/Related Trades Workers - Others': 'Craft',
  107.     'Craft,Metal/Machinery/Sheet/Structural Metal/Moulders/Welders/Related Trades Workers - Welders/Flame': 'Craft',
  108.     'Craft,Others, Garment/Related Trades Workers - Others': 'Craft',
  109.     'Craft,Others, Garment/Related Trades Workers - Tailors/Dressmakers/Furriers/Hatters': 'Craft',
  110.     'Craft,Painters, Building Structure Cleaners/Related Trades Workers - Painters and Related': 'Craft',
  111.     'Craft/Related Trades Workers - Others': 'Craft',
  112.     'Service and Sales Workers - Other Personal Services/Astrologer/Palmist/Fortune-teller/Valet/Undertak': 'Service and Sales Workers',
  113.     'Service and Sales Workers, Other Personal Services, - Driving Instructors': 'Service and Sales Workers',
  114.     'Service and Sales Workers, Personal Services - Cooks/Kitchen Coordinator/Food Canning & Preserving': 'Service and Sales Workers',
  115.     'Service and Sales Workers, Personal Services - Transport/Bus Conductors/ Ticket Inspectors': 'Service and Sales Workers',
  116.     'Service and Sales Workers, Personal Services - Travel Attendants, Air/Flight/Train/Floor Stewards/St': 'Service and Sales Workers',
  117.     'Service and Sales Workers, Personal Services - Travel/Tourist/Art Gallery/Factory Tour/SightSeeing G': 'Service and Sales Workers',
  118.     'Service and Sales Workers, Personal Services - Waiters/Waitress/Bartenders/Dang Pawara/Food & Bevera': 'Service and Sales Workers',
  119.     'Service and Sales Workers, Personal Services, - Beauticians/Mak Andam/Manicurist/Pedicurist/Aestheti': 'Service and Sales Workers',
  120.     'Service and Sales Workers, Personal Services, - Building and Housekeeping, Banquet/Hotel/Lodging/Hot': 'Service and Sales Workers',
  121.     'Service and Sales Workers, Personal Services, - Hairdressers/Barber/Hairstylists': 'Service and Sales Workers',
  122.     'Protective Services Workers - Fire-Fighters(Airport) /Fireman (Fire Brigade)': 'Protective Service Workers',
  123.     'Protective Services Workers - Immigration/Custom Officers/Assistant/Civil Defence Private & Below': 'Protective Service Workers',
  124.     'Protective Services Workers - Police Officers (Constables/Patrolman/Traffic Warden)': 'Protective Service Workers',
  125.     'Protective Services Workers - Rangers/Wildlife Warden/Assistant,Rehabilitation Workers/Industrial In': 'Protective Service Workers',
  126.     'Protective Services Workers - Security Guards (Departmental/Office/Industrial Guard/Concierge)': 'Protective Service Workers',
  127.     'Elementary - Cleaners/Helpers/Laundress/Housekeeper/Chambermaid/Porter/Hotel Bellman/Washer/Tea Lady': 'Elementary',
  128.     'Elementary, Agricultural/Forestry/Farming/Fishery Labourers - Farm/Estate/Plantation/Manuring/Vegeta': 'Elementary',
  129.     'Elementary, Food Preparation Assistant - Other than cooking, Cold/Fast Foods/Shellfish Preparer/Slic': 'Elementary',
  130.     'Elementary, Manufacturing - Workers/Labourers': 'Elementary',
  131.     'Elementary, Mining/Construction - Workers/Labourers': 'Elementary',
  132.     'Elementary, Others - Garbage/Soil Carrier/Scrap Handler/Sweeper/Messenger/Courier/Postman/Office Boy': 'Elementary',
  133.     'Elementary, Transport/Storage - Other Labourers/Workers': 'Elementary',
  134.     'Elementary, Transport/Storage, Animal-Drawn Machinery/Vehicle Drivers - Bullock-cart/Animal Train/Dr': 'Elementary',
  135.     'Elementary, Transport/Storage, Hand/Pedal Vehicle - Taxi/Trishaw/Bus/Car/Van/Lorry Drivers': 'Elementary',
  136.     'Managers, Administrative/Commercial Managers/Account/Credit/Finance/HR/Insurance/Treasury/Audit/IR/O': 'Managers',
  137.     'Managers, Hospitality/Retail/Other Services/Concierge/Reservation/Reception/Housekeeping/Food & Beve': 'Managers',
  138.     'Managers, IT/Communications Technology/Information Systems/Computer Services/Network/Data Processing': 'Managers',
  139.     'Managers, Managing Directors/Chief Executives/ Chairman/President/Director Enterprise/Organization': 'Managers',
  140.     'Managers, Other Legislators/Senior Official / Parliamentarian/Chief/Deputy/Minister/Senator/Speaker/': 'Managers',
  141.     'Managers, Production/Manufacturing/Agriculture/Forestry/Fishery/Mining/Construction/Supply/Distribut': 'Managers',
  142.     'Managers, Senior Government Officials/Government Secretary-General/Statutory Board/Ambassador/Consul': 'Managers',
  143.     'Managers, Services Managers/Child Care/Nursing/Hospital/Aged Care/Social/Welfare Manager': 'Managers',
  144.     'Outside Labour Force - Housewife/Househusband': 'Outside Labour Force',
  145.     'Outside Labour Force - Other Outside Labour Force/Disable Persons/OKU': 'Outside Labour Force',
  146.     'Outside Labour Force - Retiree': 'Outside Labour Force',
  147.     'Outside Labour Force - Student': 'Outside Labour Force',
  148.     'Plant/Machine Operators/Assemblers  - Machine-Tool Setter/Operators': 'Plant/Machine',
  149.     'Plant/Machine Operators/Assemblers  - Mechanical Machinery Assemblers': 'Plant/Machine',
  150.     'Plant/Machine Operators/Assemblers  - Other Assemblers': 'Plant/Machine',
  151.     'Plant/Machine Operators/Assemblers  - Stationary Plant/Machine Operators': 'Plant/Machine',
  152.     'Plant/Machine,  Drivers/Mobile Plant Operators/Related Workers - Car/Van/Motorcycle Drivers': 'Plant/Machine',
  153.     'Plant/Machine,  Drivers/Mobile Plant Operators/Related Workers - Heavy Truck/Bus Drivers': 'Plant/Machine',
  154.     'Plant/Machine,  Drivers/Mobile Plant Operators/Related Workers - Locomotive Engine Drivers': 'Plant/Machine',
  155.     'Plant/Machine,  Drivers/Mobile Plant Operators/Related Workers - Mobile Plant Operators': 'Plant/Machine',
  156.     'Plant/Machine,  Drivers/Mobile Plant Operators/Related Workers - Ships’ Deck Crews/Other Related': 'Plant/Machine',
  157.     'Sales Workers - Cashiers and Ticket Clerks': 'Sales Workers',
  158.     'Sales Workers - Others': 'Sales Workers',
  159.     'Sales Workers - Stall/Market/Kiosk Salesperson/promoter/Florist/': 'Sales Workers',
  160.     'Sales Workers - Street Food Salesperson/Hawker': 'Sales Workers',
  161.     'Sales Workers, Others - Fashion & Sales Demonstrators/Telemarketer/Rollerboy/Door to Door Salesperso': 'Sales Workers',
  162.     'Sales Workers, Shop Salespersons - Shop Keepers': 'Sales Workers',
  163.     'Sales Workers, Shop Salespersons - Shop Sales Assistants': 'Sales Workers',
  164.     'Sales Workers, Shop Salespersons - Shop Supervisors': 'Sales Workers',
  165.     'Education/Social Services Workers, Child Care & Teachers Aide - Child Care Workers': 'Education/Social Services Workers',
  166.     'Education/Social Services Workers, Personal Care Workers in Medical Centre - Health Care Assistants': 'Education/Social Services Workers',
  167.     'Education/Social Services Workers, Personal Care Workers in Medical Centre - Others': 'Education/Social Services Workers',
  168.     'Agricultural/Forestry/Livestock/Fishery Workers - Gardeners/Horticultural/Nursery Growers': 'Others',
  169.     'Army -Recruit/Private to General/Field Marshal, Navy - Ordinary-COD/Seaman/Recruit to Admiral of Fle': 'Others',
  170.     'Entertainer': 'Others',
  171.     'SKILLED OPERATOR (NOT HANDLING': 'Others',
  172.     'Subsistence Farmers/Fisherman/Hunters/Gatherers/Turtle Egg/Dammar/Shellfish/Seaweed/Bird Nest/Wild F': 'Others',
  173. }
  174.  
  175. data['OCCUPATION_CLUSTER'] = data['OCCUPATION'].apply(lambda x: occupation_mapping.get(x, 'Others'))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top