EURES job offers
Download worked project
After exiting your school prison, when looking for a job in Europe you will be shocked to discover a great variety of languages are spoken. Many job listings are provided by Eures portal, which is easily searchable with many fields on which you can filter. For this exercise we will use a test dataset offerte-lavoro.csv which was generated just for a hackaton: it is a crude italian version of the job offers data, with many fields expressed in natural language. We will try to convert it to a dataset with more columns and translate some terms to English.
Data provider: Autonomous Province of Trento
License: Creative Commons Zero 1.0
Requirements:
We will manipulate the dataset with pandas which is a library for analytics: if you don’t know it yet please read the pandas tutorial first.
What to do
If you haven’t already, install Pandas:
Anaconda:
conda install pandas
Without Anaconda (
--user
installs in your home):python3 -m pip install --user pandas
unzip exercises in a folder, you should get something like this:
pandas
eures.ipynb
eures-sol.ipynb
jupman.py
WARNING 1: to correctly visualize the notebook, it MUST be in an unzipped folder !
open Jupyter Notebook from that folder. Two things should open, first a console and then browser.
The browser should show a file list: navigate the list and open the notebook
eures.ipynb
WARNING 2: DO NOT use the Upload button in Jupyter, instead navigate in Jupyter browser to the unzipped folder !
Go on reading that notebook, and follow instuctions inside.
Shortcut keys:
to execute Python code inside a Jupyter cell, press
Control + Enter
to execute Python code inside a Jupyter cell AND select next cell, press
Shift + Enter
to execute Python code inside a Jupyter cell AND a create a new cell aftwerwards, press
Alt + Enter
If the notebooks look stuck, try to select
Kernel -> Restart
Introduction
WARNING: avoid constants in function bodies !!
In the exercises data you will find many names such as 'Austria'
, 'Giugno'
, etc. DO NOT put such constant names inside body of functions !! You have to write generic code which works with any input.
offerte dataset
We will load the dataset offerte-lavoro.csv into Pandas:
[1]:
import pandas as pd # we import pandas and for ease we rename it to 'pd'
import numpy as np # we import numpy and for ease we rename it to 'np'
# remember the encoding !
offerte = pd.read_csv('offerte-lavoro.csv', encoding='UTF-8')
offerte.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 53 entries, 0 to 52
Data columns (total 8 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 RIFER. 53 non-null object
1 SEDE LAVORO 53 non-null object
2 POSTI 53 non-null int64
3 IMPIEGO RICHIESTO 53 non-null object
4 TIPO CONTRATTO 53 non-null object
5 LINGUA RICHIESTA 51 non-null object
6 RET. LORDA 53 non-null object
7 DESCRIZIONE OFFERTA 53 non-null object
dtypes: int64(1), object(7)
memory usage: 3.4+ KB
It contains Italian column names, and many string fields:
[2]:
offerte.head()
[2]:
RIFER. | SEDE LAVORO | POSTI | IMPIEGO RICHIESTO | TIPO CONTRATTO | LINGUA RICHIESTA | RET. LORDA | DESCRIZIONE OFFERTA | |
---|---|---|---|---|---|---|---|---|
0 | 18331901000024 | Norvegia | 6 | Restaurant staff | Tempo determinato da maggio ad agosto | Inglese fluente + Vedi testo | Da 3500\nFr/\nmese | We will be working together with sales, prepar... |
1 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese; italiano; francese fluente | Da definire | Vos missions principales sont les suivantes : ... |
2 | 4954752 | Danimarca | 1 | Italian Sales Representative | Non specificato | Inglese; Italiano fluente | Da definire | Minimum 2 + years sales experience, preferably... |
3 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... |
4 | 10531631 | Svezia | 1 | Italian speaking purchase | Non specificato | Inglese; italiano fluente | Da definire | This is a varied Purchasing role, where your m... |
rename columns
As first thing, we create a new dataframe offers
with columns renamed into English:
[3]:
replacements = ['Reference','Workplace','Positions','Qualification','Contract type',
'Required languages','Gross retribution','Offer description']
diz = {}
i = 0
for col in offerte:
diz[col] = replacements[i]
i += 1
offers = offerte.rename(columns = diz)
[4]:
offers
[4]:
Reference | Workplace | Positions | Qualification | Contract type | Required languages | Gross retribution | Offer description | |
---|---|---|---|---|---|---|---|---|
0 | 18331901000024 | Norvegia | 6 | Restaurant staff | Tempo determinato da maggio ad agosto | Inglese fluente + Vedi testo | Da 3500\nFr/\nmese | We will be working together with sales, prepar... |
1 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese; italiano; francese fluente | Da definire | Vos missions principales sont les suivantes : ... |
2 | 4954752 | Danimarca | 1 | Italian Sales Representative | Non specificato | Inglese; Italiano fluente | Da definire | Minimum 2 + years sales experience, preferably... |
3 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... |
4 | 10531631 | Svezia | 1 | Italian speaking purchase | Non specificato | Inglese; italiano fluente | Da definire | This is a varied Purchasing role, where your m... |
5 | 51485 | Islanda | 1 | Pizza chef | Tempo determinato | Inglese Buono | Da definire | Job details/requirements: Experience in making... |
6 | 4956299 | Danimarca | 1 | Regional Key account manager - Italy | Non specificato | Inglese; italiano fluente | Da definire | Requirements: possess good business acumen; ar... |
7 | - | Italia\nLazise | 1 | Receptionist | Non specificato | Inglese; Tedesco fluente + Vedi testo | Min 1500€\nMax\n1800€\nnetto\nmese | Camping Village Du Parc, Lazise,Italy is looki... |
8 | 2099681 | Irlanda | 11 | Customer Service Representative in Athens | Non specificato | Italiano fluente; Inglese buono | Da definire | Responsibilities: Solving customers queries by... |
9 | 12091902000474 | Norvegia | 1 | Dispatch personnel | Maggio – agosto 2019 | Inglese fluente + Vedi testo | Da definire | The Dispatch Team works outside in all weather... |
10 | 10000-1169373760-S | Svizzera | 1 | Mitarbeiter (m/w/d) im Verkaufsinnendienst | Non specificato | Tedesco fluente; francese e/o italiano buono | Da definire | Was Sie erwartet: telefonische und persönliche... |
11 | 10000-1168768920-S | Germania | 1 | Vertriebs assistent | Non specificato | Tedesco ed inglese fluente + italiano e/o spag... | Da definire | Ihre Tätigkeit: enge Zusammenarbeit mit unsere... |
12 | 082BMLG | Francia | 1 | Second / Seconde de cuisine | Tempo determinato da aprile ad ottobre 2019 | Francese discreto | Da definire | Missions : Vous serez en charge de la mise en ... |
13 | 23107550 | Svezia | 1 | Waiter/Waitress | Non specificato | Inglese ed Italiano buono | Da definire | Bar Robusta are looking for someone that speak... |
14 | 11949-11273083-S | Austria | 1 | Empfangskraft | Non specificato | Tedesco ed Inglese Fluente + vedi testo | Da definire | Erfolgreich abgeschlossene Ausbildung in der H... |
15 | 18331901000024 | Norvegia | 6 | Salesclerk | Da maggio ad ottobre | Inglese fluente + Vedi testo | Da definire | We will be working together with sales, prepar... |
16 | ID-11252967 | Austria | 1 | Verkaufssachbearbeiter für Italien (m/w) | Non specificato | Tedesco e italiano fluenti | 2574,68 Euro/\nmese | Unsere Anforderungen: Sie haben eine kaufmänni... |
17 | 10000-1162270517-S | Germania | 1 | Koch/Köchin | Non specificato | Italiano e tedesco buono | Da definire | Kenntnisse und Fertigkeiten: Erfolgreich abges... |
18 | 2100937 | Irlanda | 1 | Garden Centre Assistant | Non specificato | Inglese fluente | Da definire | Applicants should have good plant knowledge an... |
19 | WBS697919 | Paesi Bassi | 5 | Strawberries and Rhubarb processors | Da maggio a settembre | NaN | Vedi testo | In this job you will be busy picking strawberr... |
20 | 19361902000002 | Norvegia | 2 | Cleaners/renholdere Fishing Camp 2019 season | Tempo determinato da aprile ad ottobre 2019 | Inglese fluente | Da definire | Torsvåg Havfiske, estbl. 2005, is a touristcom... |
21 | 2095000 | Spagna | 15 | Customer service agent for solar energy | Non specificato | Inglese e tedesco fluenti | €21,000 per annum + 3.500 | One of our biggest clients offer a wide range ... |
22 | 58699222 | Norvegia | 1 | Receptionists tourist hotel | Da maggio a settembre o da giugno ad agosto | Inglese Fluente; francese e/o spagnolo buoni | Da definire | The job also incl communication with the kitch... |
23 | 10000-1169431325-S | Svizzera | 1 | Reiseverkehrskaufmann/-frau - Touristik | Non specificato | Tedesco Fluente + Vedi testo | Da definire | Wir erwarten: Abgeschlossene Reisebüroausbildu... |
24 | 082QNLW | Francia | 1 | Assistant administratif export avec Italie (H/F) | Non specificato | Francese ed italiano fluenti | Da definire | Vous serez en charge des missions suivantes po... |
25 | 2101510 | Irlanda | 1 | Receptionist | Non specificato | Inglese fluente; Tedesco discreto | Da definire | Receptionist required for the 2019 Season. Kno... |
26 | 171767 | Spagna | 300 | Seasonal worker in a strawberry farm | Da febbraio a giugno | NaN | Da definire | Peon agricola (recolector fresa) / culegator d... |
27 | 14491903000005 | Norvegia\nMøre e Romsdal e Sogn og Fjordane. | 6 | Guider | Tempo determinato da maggio a settembre | Tedesco e inglese fluente + Italiano buono | 20000 NOK /mese | We require that you: are at least 20 years old... |
28 | 10000-1167210671-S | Germania | 1 | Sales Manager Südeuropa m/w | Tempo indeterminato | Inglese e tedesco fluente + Italiano e/o spagn... | Da definire | Ihr Profil :Idealerweise Erfahrung in der Text... |
29 | 507 | Italia\ned\nestero | 25 | Animatori - coreografi - ballerini - istruttor... | Tempo determinato da aprile ad ottobre | Inglese Buono + Vedi testo | Vedi testo | Padronanza di una o più lingue tra queste (ita... |
30 | 846727 | Belgio | 1 | Junior Buyer Italian /English (m/v) | Non specificato | Inglese Ed italiano fluente | Da definire | You have a Bachelor degree. 2-3 years of profe... |
31 | 10531631 | Svezia\nLund | 1 | Italian Speaking Sales Administration Officer | Tempo indeterminato | Inglese ed italiano fluente | Da definire | You will focus on: Act as our main contact for... |
32 | 082ZFDB | Francia | 1 | Assistant Administratif et Commercial Bilingue... | Non specificato | Francese ed italiano fluente | Da definire | Au sein de l'équipe administrative, vous trava... |
33 | 1807568 | Regno Unito | 1 | Account Manager - German, Italian, Spanish, Dutch | Non specificato | Inglese Fluente + Vedi testo | £25,000 per annum | Account Manager The Candidate You will be an e... |
34 | 2103264 | Irlanda | 1 | Receptionist - Summer | Da maggio a settembre | Inglese fluente | Da definire | Assist with any ad-hoc project as required by ... |
35 | ID-11146984 | Austria Klagenfurt | 1 | Nachwuchsführungskraft im Agrarhandel / Traine... | Non specificato | Tedesco; Italiano buono | 1.950\nEuro/ mese | Ihre Qualifikationen: landwirtschaftliche Ausb... |
36 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... |
37 | 243096 | Spagna | 1 | Customer Service with French and Italian | Non specificato | Italiano; Francese fluente; Spagnolo buono | Da definire | As an IT Helpdesk, you will be responsible for... |
38 | 9909319 | Francia | 1 | Commercial Web Italie (H/F) | Non specificato | Italiano; Francese fluente | Da definire | Profil : Première expérience réussie dans la v... |
39 | WBS1253419 | Paesi\nBassi | 1 | Customer service employee Dow | Tempo determinato | Inglese; italiano fluente + vedi testo | Da definire | Requirements: You have a bachelor degree or hi... |
40 | 70cb25b1-5510-11e9-b89f-005056ac086d | Svizzera | 1 | Hauswart/In | Non specificato | Tedesco buono | Da definire | Wir suchen in unserem Team einen Mitarbeiter m... |
41 | 10000-1170625924-S | Germania | 1 | Monteur (m/w/d) Photovoltaik (Elektroanlagenmo... | Non specificato | Tedesco e/o inglese buono | Da definire | Anforderungen an die Bewerber/innen: abgeschlo... |
42 | 2106868 | Irlanda | 1 | Retail Store Assistant | Non specificato | Inglese Fluente | Da definire | Retail Store Assistant required for a SPAR sho... |
43 | 23233743 | Svezia | 1 | E-commerce copywriter | Non specificato | Inglese Fluente + vedi testo | Da definire | We support 15 languages incl Chinese, Russian ... |
44 | ID-11478229 | Italia\nAustria | 1 | Forstarbeiter/in | Aprile – maggio 2019 | Tedesco italiano discreto | €9,50\n/ora | ANFORDERUNGSPROFIL: Pflichtschulabschluss und ... |
45 | ID-11477956 | Austria | 1 | Koch/Köchin für italienische Küche in Teilzeit | Non specificato | Tedesco buono | Da definire | ANFORDERUNGSPROFIL:Erfahrung mit Pasta & Pizze... |
46 | 6171903000036 | Norvegia\nHesla Gaard | 1 | Maid / Housekeeping assistant | Tempo determinato da aprile a dicembre | Inglese fluente | 20.000 NOK mese | Responsibility for cleaning off our apartments... |
47 | 9909319 | Finlandia | 1 | Test Designer | Non specificato | Inglese fluente | Da definire | As Test Designer in R&D Devices team you will:... |
48 | ID-11239341 | Cipro Grecia Spagna | 5 | Animateur 2019 (m/w) | Tempo determinato aprile-ottobre | Tedesco; inglese buono | 800\n€/mese | Deine Fähigkeiten: Im Vordergrund steht Deine ... |
49 | 10000-1167068836-S | Germania | 2 | Verkaufshilfe im Souvenirshop (m/w/d) 5 Tage-W... | Contratto stagionale fino a novembre 2019 | Tedesco buono; Inglese buono | Da definire | Wir bieten: Einen zukunftssicheren, saisonalen... |
50 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese francese; Italiano fluente | Da definire | Description : Au sein d'une équipe de 10 perso... |
51 | 4956299 | Belgio | 1 | ACCOUNT MANAGER EXPORT ITALIE - HAYS - StepSto... | Non specificato | Inglese francese; Italiano fluente | Da definire | Votre profil : Pour ce poste, nous recherchons... |
52 | - | Austria\nPfenninger Alm | 1 | Cameriere e Commis de rang | Non specificato | Inglese buono; tedesco preferibile | 1500-1600\n€/mese | Lavoro estivo nella periferia di Salisburgo. E... |
1. Rename countries
We would like to create a new column holding a list of countries where the job is to be done. You will also have to translate countries to their English name.
To allow for text processing, you are provided with some data as python data structures (you do not need to further edit it):
[5]:
connectives = ['e', 'ed']
punctuation = ['.',';',',']
countries = {
'Austria':'Austria',
'Belgio': 'Belgium',
'Cipro':'Cyprus',
'Danimarca': 'Denmark',
'Irlanda':'Ireland',
'Italia':'Italy',
'Grecia':'Greece',
'Finlandia' : 'Finland',
'Francia' : 'France',
'Norvegia': 'Norway',
'Paesi Bassi':'Netherlands',
'Regno Unito': 'United Kingdom',
'Spagna': 'Spain',
'Svezia':'Sweden',
'Islanda':'Iceland',
'Svizzera':'Switzerland',
'estero': 'abroad' # special case
}
cities = {
'Pfenninger Alm': 'Pfenninger Alm',
'Berlino': 'Berlin',
'Trento': 'Trento',
'Klagenfurt': 'Klagenfurt',
'Lazise': 'Lazise',
'Lund':'Lund',
'Møre e Romsdal': 'Møre og Romsdal',
'Pfenninger Alm' : 'Pfenninger Alm',
'Sogn og Fjordane': 'Sogn og Fjordane',
'Hesla Gaard':'Hesla Gaard'
}
1.1 countries_to_list
✪✪ Implement function countries_to_list
which given a string from Workplace
column, RETURN a list holding country names in English in the exact order they appear in the string. The function will have to remove city names as well as punctuation, connectives and newlines using data define in the previous cell. There are various ways to solve the exercise: if you try the most straightforward one, most probably you will get countries which are not in the same order as in the string.
NOTE: this function only takes a single string as input!
Example:
>>> countries_to_list("Regno Unito, Italia ed estero")
['United Kingdom', 'Italy', 'abroad']
For other examples, see asserts.
Show solution[6]:
def countries_to_list(s):
raise Exception('TODO IMPLEMENT ME !')
# single country
assert countries_to_list("Francia") == ['France']
# country with a city
assert countries_to_list("Austria Klagenfurt") == ['Austria']
# country with a space
assert countries_to_list("Paesi Bassi") == ['Netherlands']
# one country, newline, one city
assert countries_to_list("Italia\nLazise") == ['Italy']
# newline, multiple cities
assert countries_to_list("Norvegia\nMøre e Romsdal e Sogn og Fjordane.") == ['Norway']
# multiple countries - order *must* be preserved !
assert countries_to_list('Cipro Grecia Spagna') == ['Cyprus', 'Greece', 'Spain']
# punctuation and connectives, multiple countries - order *must* be preserved !
assert countries_to_list('Regno Unito, Italia ed estero') == ['United Kingdom', 'Italy', 'abroad']
1.2 Filling column Workplace Country
✪ Now create a new column Workplace Country
with data calculated using the function you just defined.
To do it, check method transform in Pandas worksheet
[7]:
# write here
[8]:
[9]:
print()
print(" ***************** SOLUTION OUTPUT ********************")
offers
***************** SOLUTION OUTPUT ********************
[9]:
Reference | Workplace | Positions | Qualification | Contract type | Required languages | Gross retribution | Offer description | Workplace Country | |
---|---|---|---|---|---|---|---|---|---|
0 | 18331901000024 | Norvegia | 6 | Restaurant staff | Tempo determinato da maggio ad agosto | Inglese fluente + Vedi testo | Da 3500\nFr/\nmese | We will be working together with sales, prepar... | [Norway] |
1 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese; italiano; francese fluente | Da definire | Vos missions principales sont les suivantes : ... | [France] |
2 | 4954752 | Danimarca | 1 | Italian Sales Representative | Non specificato | Inglese; Italiano fluente | Da definire | Minimum 2 + years sales experience, preferably... | [Denmark] |
3 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... | [] |
4 | 10531631 | Svezia | 1 | Italian speaking purchase | Non specificato | Inglese; italiano fluente | Da definire | This is a varied Purchasing role, where your m... | [Sweden] |
5 | 51485 | Islanda | 1 | Pizza chef | Tempo determinato | Inglese Buono | Da definire | Job details/requirements: Experience in making... | [Iceland] |
6 | 4956299 | Danimarca | 1 | Regional Key account manager - Italy | Non specificato | Inglese; italiano fluente | Da definire | Requirements: possess good business acumen; ar... | [Denmark] |
7 | - | Italia\nLazise | 1 | Receptionist | Non specificato | Inglese; Tedesco fluente + Vedi testo | Min 1500€\nMax\n1800€\nnetto\nmese | Camping Village Du Parc, Lazise,Italy is looki... | [Italy] |
8 | 2099681 | Irlanda | 11 | Customer Service Representative in Athens | Non specificato | Italiano fluente; Inglese buono | Da definire | Responsibilities: Solving customers queries by... | [Ireland] |
9 | 12091902000474 | Norvegia | 1 | Dispatch personnel | Maggio – agosto 2019 | Inglese fluente + Vedi testo | Da definire | The Dispatch Team works outside in all weather... | [Norway] |
10 | 10000-1169373760-S | Svizzera | 1 | Mitarbeiter (m/w/d) im Verkaufsinnendienst | Non specificato | Tedesco fluente; francese e/o italiano buono | Da definire | Was Sie erwartet: telefonische und persönliche... | [Switzerland] |
11 | 10000-1168768920-S | Germania | 1 | Vertriebs assistent | Non specificato | Tedesco ed inglese fluente + italiano e/o spag... | Da definire | Ihre Tätigkeit: enge Zusammenarbeit mit unsere... | [] |
12 | 082BMLG | Francia | 1 | Second / Seconde de cuisine | Tempo determinato da aprile ad ottobre 2019 | Francese discreto | Da definire | Missions : Vous serez en charge de la mise en ... | [France] |
13 | 23107550 | Svezia | 1 | Waiter/Waitress | Non specificato | Inglese ed Italiano buono | Da definire | Bar Robusta are looking for someone that speak... | [Sweden] |
14 | 11949-11273083-S | Austria | 1 | Empfangskraft | Non specificato | Tedesco ed Inglese Fluente + vedi testo | Da definire | Erfolgreich abgeschlossene Ausbildung in der H... | [Austria] |
15 | 18331901000024 | Norvegia | 6 | Salesclerk | Da maggio ad ottobre | Inglese fluente + Vedi testo | Da definire | We will be working together with sales, prepar... | [Norway] |
16 | ID-11252967 | Austria | 1 | Verkaufssachbearbeiter für Italien (m/w) | Non specificato | Tedesco e italiano fluenti | 2574,68 Euro/\nmese | Unsere Anforderungen: Sie haben eine kaufmänni... | [Austria] |
17 | 10000-1162270517-S | Germania | 1 | Koch/Köchin | Non specificato | Italiano e tedesco buono | Da definire | Kenntnisse und Fertigkeiten: Erfolgreich abges... | [] |
18 | 2100937 | Irlanda | 1 | Garden Centre Assistant | Non specificato | Inglese fluente | Da definire | Applicants should have good plant knowledge an... | [Ireland] |
19 | WBS697919 | Paesi Bassi | 5 | Strawberries and Rhubarb processors | Da maggio a settembre | NaN | Vedi testo | In this job you will be busy picking strawberr... | [Netherlands] |
20 | 19361902000002 | Norvegia | 2 | Cleaners/renholdere Fishing Camp 2019 season | Tempo determinato da aprile ad ottobre 2019 | Inglese fluente | Da definire | Torsvåg Havfiske, estbl. 2005, is a touristcom... | [Norway] |
21 | 2095000 | Spagna | 15 | Customer service agent for solar energy | Non specificato | Inglese e tedesco fluenti | €21,000 per annum + 3.500 | One of our biggest clients offer a wide range ... | [Spain] |
22 | 58699222 | Norvegia | 1 | Receptionists tourist hotel | Da maggio a settembre o da giugno ad agosto | Inglese Fluente; francese e/o spagnolo buoni | Da definire | The job also incl communication with the kitch... | [Norway] |
23 | 10000-1169431325-S | Svizzera | 1 | Reiseverkehrskaufmann/-frau - Touristik | Non specificato | Tedesco Fluente + Vedi testo | Da definire | Wir erwarten: Abgeschlossene Reisebüroausbildu... | [Switzerland] |
24 | 082QNLW | Francia | 1 | Assistant administratif export avec Italie (H/F) | Non specificato | Francese ed italiano fluenti | Da definire | Vous serez en charge des missions suivantes po... | [France] |
25 | 2101510 | Irlanda | 1 | Receptionist | Non specificato | Inglese fluente; Tedesco discreto | Da definire | Receptionist required for the 2019 Season. Kno... | [Ireland] |
26 | 171767 | Spagna | 300 | Seasonal worker in a strawberry farm | Da febbraio a giugno | NaN | Da definire | Peon agricola (recolector fresa) / culegator d... | [Spain] |
27 | 14491903000005 | Norvegia\nMøre e Romsdal e Sogn og Fjordane. | 6 | Guider | Tempo determinato da maggio a settembre | Tedesco e inglese fluente + Italiano buono | 20000 NOK /mese | We require that you: are at least 20 years old... | [Norway] |
28 | 10000-1167210671-S | Germania | 1 | Sales Manager Südeuropa m/w | Tempo indeterminato | Inglese e tedesco fluente + Italiano e/o spagn... | Da definire | Ihr Profil :Idealerweise Erfahrung in der Text... | [] |
29 | 507 | Italia\ned\nestero | 25 | Animatori - coreografi - ballerini - istruttor... | Tempo determinato da aprile ad ottobre | Inglese Buono + Vedi testo | Vedi testo | Padronanza di una o più lingue tra queste (ita... | [Italy, abroad] |
30 | 846727 | Belgio | 1 | Junior Buyer Italian /English (m/v) | Non specificato | Inglese Ed italiano fluente | Da definire | You have a Bachelor degree. 2-3 years of profe... | [Belgium] |
31 | 10531631 | Svezia\nLund | 1 | Italian Speaking Sales Administration Officer | Tempo indeterminato | Inglese ed italiano fluente | Da definire | You will focus on: Act as our main contact for... | [Sweden] |
32 | 082ZFDB | Francia | 1 | Assistant Administratif et Commercial Bilingue... | Non specificato | Francese ed italiano fluente | Da definire | Au sein de l'équipe administrative, vous trava... | [France] |
33 | 1807568 | Regno Unito | 1 | Account Manager - German, Italian, Spanish, Dutch | Non specificato | Inglese Fluente + Vedi testo | £25,000 per annum | Account Manager The Candidate You will be an e... | [United Kingdom] |
34 | 2103264 | Irlanda | 1 | Receptionist - Summer | Da maggio a settembre | Inglese fluente | Da definire | Assist with any ad-hoc project as required by ... | [Ireland] |
35 | ID-11146984 | Austria Klagenfurt | 1 | Nachwuchsführungskraft im Agrarhandel / Traine... | Non specificato | Tedesco; Italiano buono | 1.950\nEuro/ mese | Ihre Qualifikationen: landwirtschaftliche Ausb... | [Austria] |
36 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... | [] |
37 | 243096 | Spagna | 1 | Customer Service with French and Italian | Non specificato | Italiano; Francese fluente; Spagnolo buono | Da definire | As an IT Helpdesk, you will be responsible for... | [Spain] |
38 | 9909319 | Francia | 1 | Commercial Web Italie (H/F) | Non specificato | Italiano; Francese fluente | Da definire | Profil : Première expérience réussie dans la v... | [France] |
39 | WBS1253419 | Paesi\nBassi | 1 | Customer service employee Dow | Tempo determinato | Inglese; italiano fluente + vedi testo | Da definire | Requirements: You have a bachelor degree or hi... | [Netherlands] |
40 | 70cb25b1-5510-11e9-b89f-005056ac086d | Svizzera | 1 | Hauswart/In | Non specificato | Tedesco buono | Da definire | Wir suchen in unserem Team einen Mitarbeiter m... | [Switzerland] |
41 | 10000-1170625924-S | Germania | 1 | Monteur (m/w/d) Photovoltaik (Elektroanlagenmo... | Non specificato | Tedesco e/o inglese buono | Da definire | Anforderungen an die Bewerber/innen: abgeschlo... | [] |
42 | 2106868 | Irlanda | 1 | Retail Store Assistant | Non specificato | Inglese Fluente | Da definire | Retail Store Assistant required for a SPAR sho... | [Ireland] |
43 | 23233743 | Svezia | 1 | E-commerce copywriter | Non specificato | Inglese Fluente + vedi testo | Da definire | We support 15 languages incl Chinese, Russian ... | [Sweden] |
44 | ID-11478229 | Italia\nAustria | 1 | Forstarbeiter/in | Aprile – maggio 2019 | Tedesco italiano discreto | €9,50\n/ora | ANFORDERUNGSPROFIL: Pflichtschulabschluss und ... | [Italy, Austria] |
45 | ID-11477956 | Austria | 1 | Koch/Köchin für italienische Küche in Teilzeit | Non specificato | Tedesco buono | Da definire | ANFORDERUNGSPROFIL:Erfahrung mit Pasta & Pizze... | [Austria] |
46 | 6171903000036 | Norvegia\nHesla Gaard | 1 | Maid / Housekeeping assistant | Tempo determinato da aprile a dicembre | Inglese fluente | 20.000 NOK mese | Responsibility for cleaning off our apartments... | [Norway] |
47 | 9909319 | Finlandia | 1 | Test Designer | Non specificato | Inglese fluente | Da definire | As Test Designer in R&D Devices team you will:... | [Finland] |
48 | ID-11239341 | Cipro Grecia Spagna | 5 | Animateur 2019 (m/w) | Tempo determinato aprile-ottobre | Tedesco; inglese buono | 800\n€/mese | Deine Fähigkeiten: Im Vordergrund steht Deine ... | [Cyprus, Greece, Spain] |
49 | 10000-1167068836-S | Germania | 2 | Verkaufshilfe im Souvenirshop (m/w/d) 5 Tage-W... | Contratto stagionale fino a novembre 2019 | Tedesco buono; Inglese buono | Da definire | Wir bieten: Einen zukunftssicheren, saisonalen... | [] |
50 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese francese; Italiano fluente | Da definire | Description : Au sein d'une équipe de 10 perso... | [France] |
51 | 4956299 | Belgio | 1 | ACCOUNT MANAGER EXPORT ITALIE - HAYS - StepSto... | Non specificato | Inglese francese; Italiano fluente | Da definire | Votre profil : Pour ce poste, nous recherchons... | [Belgium] |
52 | - | Austria\nPfenninger Alm | 1 | Cameriere e Commis de rang | Non specificato | Inglese buono; tedesco preferibile | 1500-1600\n€/mese | Lavoro estivo nella periferia di Salisburgo. E... | [Austria] |
2. Work dates
You will add columns holding the dates of when a job start and when a job ends.
2.1 from_to function
✪✪ First define from_to
function, which takes some text from column "Contract type"
and RETURNS a tuple holding the extracted month numbers (starting from ONE, not zero!)
Example:
In this this case result is (5, 8)
because May is the fifth month and August is the eighth:
>>> from_to("Tempo determinato da maggio ad agosto")
(5,8)
If it is not possible to extract the text, the function should return a tuple holding NaNs:
>>> from_to('Non specificato')
(np.nan, np.nan)
Beware NaNs can lead to puzzling results, make sure you have read NaN and Infinities section in Numpy Matrices notebook
For other patterns to check, see asserts.
Show solution[10]:
months = ['gennaio', 'febbraio', 'marzo' , 'aprile' , 'maggio' , 'giugno',
'luglio' , 'agosto' , 'settembre', 'ottobre', 'novembre', 'dicembre' ]
def from_to(text):
raise Exception('TODO IMPLEMENT ME !')
assert from_to('Da maggio a settembre') == (5,9)
assert from_to('Da maggio ad ottobre') == (5, 10)
assert from_to('Tempo determinato da maggio ad agosto') == (5,8)
# Unspecified
assert from_to('Non specificato') == (np.nan, np.nan)
# WARNING: BE SUPERCAREFUL ABOUT THIS ONE: SYMBOL – IS *NOT* A MINUS !!
# COPY AND PASTE IT EXACTLY AS YOU FIND IT HERE
# (BUT OF COURSE *DO NOT COPY* THE MONTH NAMES !)
assert from_to('Maggio – agosto 2019') == (5, 5)
# special case 'or', we just consider first interval and ignore the following one.
assert from_to('Da maggio a settembre o da giugno ad agosto') == (5,9)
# special case only right side, we ignore all of it
assert from_to('Contratto stagionale fino a novembre 2019') == (np.nan, np.nan)
2.2. From To columns
✪ MODIFY offers
dataframe by adding From
and To
columns.
HINT 1: You can call transform, see Transforming section in Pandas worksheet
HINT 2 : to extract the element you want from the tuple, you can pass to the transform a function on the fly with
lambda
. See lambdas section in Functions worksheet
[11]:
# write here
[12]:
print()
print(" **************** SOLUTION OUTPUT ****************")
offers
**************** SOLUTION OUTPUT ****************
[12]:
Reference | Workplace | Positions | Qualification | Contract type | Required languages | Gross retribution | Offer description | Workplace Country | From | To | |
---|---|---|---|---|---|---|---|---|---|---|---|
0 | 18331901000024 | Norvegia | 6 | Restaurant staff | Tempo determinato da maggio ad agosto | Inglese fluente + Vedi testo | Da 3500\nFr/\nmese | We will be working together with sales, prepar... | [Norway] | 5.0 | 8.0 |
1 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese; italiano; francese fluente | Da definire | Vos missions principales sont les suivantes : ... | [France] | NaN | NaN |
2 | 4954752 | Danimarca | 1 | Italian Sales Representative | Non specificato | Inglese; Italiano fluente | Da definire | Minimum 2 + years sales experience, preferably... | [Denmark] | NaN | NaN |
3 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... | [] | NaN | NaN |
4 | 10531631 | Svezia | 1 | Italian speaking purchase | Non specificato | Inglese; italiano fluente | Da definire | This is a varied Purchasing role, where your m... | [Sweden] | NaN | NaN |
5 | 51485 | Islanda | 1 | Pizza chef | Tempo determinato | Inglese Buono | Da definire | Job details/requirements: Experience in making... | [Iceland] | NaN | NaN |
6 | 4956299 | Danimarca | 1 | Regional Key account manager - Italy | Non specificato | Inglese; italiano fluente | Da definire | Requirements: possess good business acumen; ar... | [Denmark] | NaN | NaN |
7 | - | Italia\nLazise | 1 | Receptionist | Non specificato | Inglese; Tedesco fluente + Vedi testo | Min 1500€\nMax\n1800€\nnetto\nmese | Camping Village Du Parc, Lazise,Italy is looki... | [Italy] | NaN | NaN |
8 | 2099681 | Irlanda | 11 | Customer Service Representative in Athens | Non specificato | Italiano fluente; Inglese buono | Da definire | Responsibilities: Solving customers queries by... | [Ireland] | NaN | NaN |
9 | 12091902000474 | Norvegia | 1 | Dispatch personnel | Maggio – agosto 2019 | Inglese fluente + Vedi testo | Da definire | The Dispatch Team works outside in all weather... | [Norway] | 5.0 | 5.0 |
10 | 10000-1169373760-S | Svizzera | 1 | Mitarbeiter (m/w/d) im Verkaufsinnendienst | Non specificato | Tedesco fluente; francese e/o italiano buono | Da definire | Was Sie erwartet: telefonische und persönliche... | [Switzerland] | NaN | NaN |
11 | 10000-1168768920-S | Germania | 1 | Vertriebs assistent | Non specificato | Tedesco ed inglese fluente + italiano e/o spag... | Da definire | Ihre Tätigkeit: enge Zusammenarbeit mit unsere... | [] | NaN | NaN |
12 | 082BMLG | Francia | 1 | Second / Seconde de cuisine | Tempo determinato da aprile ad ottobre 2019 | Francese discreto | Da definire | Missions : Vous serez en charge de la mise en ... | [France] | 4.0 | 10.0 |
13 | 23107550 | Svezia | 1 | Waiter/Waitress | Non specificato | Inglese ed Italiano buono | Da definire | Bar Robusta are looking for someone that speak... | [Sweden] | NaN | NaN |
14 | 11949-11273083-S | Austria | 1 | Empfangskraft | Non specificato | Tedesco ed Inglese Fluente + vedi testo | Da definire | Erfolgreich abgeschlossene Ausbildung in der H... | [Austria] | NaN | NaN |
15 | 18331901000024 | Norvegia | 6 | Salesclerk | Da maggio ad ottobre | Inglese fluente + Vedi testo | Da definire | We will be working together with sales, prepar... | [Norway] | 5.0 | 10.0 |
16 | ID-11252967 | Austria | 1 | Verkaufssachbearbeiter für Italien (m/w) | Non specificato | Tedesco e italiano fluenti | 2574,68 Euro/\nmese | Unsere Anforderungen: Sie haben eine kaufmänni... | [Austria] | NaN | NaN |
17 | 10000-1162270517-S | Germania | 1 | Koch/Köchin | Non specificato | Italiano e tedesco buono | Da definire | Kenntnisse und Fertigkeiten: Erfolgreich abges... | [] | NaN | NaN |
18 | 2100937 | Irlanda | 1 | Garden Centre Assistant | Non specificato | Inglese fluente | Da definire | Applicants should have good plant knowledge an... | [Ireland] | NaN | NaN |
19 | WBS697919 | Paesi Bassi | 5 | Strawberries and Rhubarb processors | Da maggio a settembre | NaN | Vedi testo | In this job you will be busy picking strawberr... | [Netherlands] | 5.0 | 9.0 |
20 | 19361902000002 | Norvegia | 2 | Cleaners/renholdere Fishing Camp 2019 season | Tempo determinato da aprile ad ottobre 2019 | Inglese fluente | Da definire | Torsvåg Havfiske, estbl. 2005, is a touristcom... | [Norway] | 4.0 | 10.0 |
21 | 2095000 | Spagna | 15 | Customer service agent for solar energy | Non specificato | Inglese e tedesco fluenti | €21,000 per annum + 3.500 | One of our biggest clients offer a wide range ... | [Spain] | NaN | NaN |
22 | 58699222 | Norvegia | 1 | Receptionists tourist hotel | Da maggio a settembre o da giugno ad agosto | Inglese Fluente; francese e/o spagnolo buoni | Da definire | The job also incl communication with the kitch... | [Norway] | 5.0 | 9.0 |
23 | 10000-1169431325-S | Svizzera | 1 | Reiseverkehrskaufmann/-frau - Touristik | Non specificato | Tedesco Fluente + Vedi testo | Da definire | Wir erwarten: Abgeschlossene Reisebüroausbildu... | [Switzerland] | NaN | NaN |
24 | 082QNLW | Francia | 1 | Assistant administratif export avec Italie (H/F) | Non specificato | Francese ed italiano fluenti | Da definire | Vous serez en charge des missions suivantes po... | [France] | NaN | NaN |
25 | 2101510 | Irlanda | 1 | Receptionist | Non specificato | Inglese fluente; Tedesco discreto | Da definire | Receptionist required for the 2019 Season. Kno... | [Ireland] | NaN | NaN |
26 | 171767 | Spagna | 300 | Seasonal worker in a strawberry farm | Da febbraio a giugno | NaN | Da definire | Peon agricola (recolector fresa) / culegator d... | [Spain] | 2.0 | 6.0 |
27 | 14491903000005 | Norvegia\nMøre e Romsdal e Sogn og Fjordane. | 6 | Guider | Tempo determinato da maggio a settembre | Tedesco e inglese fluente + Italiano buono | 20000 NOK /mese | We require that you: are at least 20 years old... | [Norway] | 5.0 | 9.0 |
28 | 10000-1167210671-S | Germania | 1 | Sales Manager Südeuropa m/w | Tempo indeterminato | Inglese e tedesco fluente + Italiano e/o spagn... | Da definire | Ihr Profil :Idealerweise Erfahrung in der Text... | [] | NaN | NaN |
29 | 507 | Italia\ned\nestero | 25 | Animatori - coreografi - ballerini - istruttor... | Tempo determinato da aprile ad ottobre | Inglese Buono + Vedi testo | Vedi testo | Padronanza di una o più lingue tra queste (ita... | [Italy, abroad] | 4.0 | 10.0 |
30 | 846727 | Belgio | 1 | Junior Buyer Italian /English (m/v) | Non specificato | Inglese Ed italiano fluente | Da definire | You have a Bachelor degree. 2-3 years of profe... | [Belgium] | NaN | NaN |
31 | 10531631 | Svezia\nLund | 1 | Italian Speaking Sales Administration Officer | Tempo indeterminato | Inglese ed italiano fluente | Da definire | You will focus on: Act as our main contact for... | [Sweden] | NaN | NaN |
32 | 082ZFDB | Francia | 1 | Assistant Administratif et Commercial Bilingue... | Non specificato | Francese ed italiano fluente | Da definire | Au sein de l'équipe administrative, vous trava... | [France] | NaN | NaN |
33 | 1807568 | Regno Unito | 1 | Account Manager - German, Italian, Spanish, Dutch | Non specificato | Inglese Fluente + Vedi testo | £25,000 per annum | Account Manager The Candidate You will be an e... | [United Kingdom] | NaN | NaN |
34 | 2103264 | Irlanda | 1 | Receptionist - Summer | Da maggio a settembre | Inglese fluente | Da definire | Assist with any ad-hoc project as required by ... | [Ireland] | 5.0 | 9.0 |
35 | ID-11146984 | Austria Klagenfurt | 1 | Nachwuchsführungskraft im Agrarhandel / Traine... | Non specificato | Tedesco; Italiano buono | 1.950\nEuro/ mese | Ihre Qualifikationen: landwirtschaftliche Ausb... | [Austria] | NaN | NaN |
36 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... | [] | NaN | NaN |
37 | 243096 | Spagna | 1 | Customer Service with French and Italian | Non specificato | Italiano; Francese fluente; Spagnolo buono | Da definire | As an IT Helpdesk, you will be responsible for... | [Spain] | NaN | NaN |
38 | 9909319 | Francia | 1 | Commercial Web Italie (H/F) | Non specificato | Italiano; Francese fluente | Da definire | Profil : Première expérience réussie dans la v... | [France] | NaN | NaN |
39 | WBS1253419 | Paesi\nBassi | 1 | Customer service employee Dow | Tempo determinato | Inglese; italiano fluente + vedi testo | Da definire | Requirements: You have a bachelor degree or hi... | [Netherlands] | NaN | NaN |
40 | 70cb25b1-5510-11e9-b89f-005056ac086d | Svizzera | 1 | Hauswart/In | Non specificato | Tedesco buono | Da definire | Wir suchen in unserem Team einen Mitarbeiter m... | [Switzerland] | NaN | NaN |
41 | 10000-1170625924-S | Germania | 1 | Monteur (m/w/d) Photovoltaik (Elektroanlagenmo... | Non specificato | Tedesco e/o inglese buono | Da definire | Anforderungen an die Bewerber/innen: abgeschlo... | [] | NaN | NaN |
42 | 2106868 | Irlanda | 1 | Retail Store Assistant | Non specificato | Inglese Fluente | Da definire | Retail Store Assistant required for a SPAR sho... | [Ireland] | NaN | NaN |
43 | 23233743 | Svezia | 1 | E-commerce copywriter | Non specificato | Inglese Fluente + vedi testo | Da definire | We support 15 languages incl Chinese, Russian ... | [Sweden] | NaN | NaN |
44 | ID-11478229 | Italia\nAustria | 1 | Forstarbeiter/in | Aprile – maggio 2019 | Tedesco italiano discreto | €9,50\n/ora | ANFORDERUNGSPROFIL: Pflichtschulabschluss und ... | [Italy, Austria] | 4.0 | 4.0 |
45 | ID-11477956 | Austria | 1 | Koch/Köchin für italienische Küche in Teilzeit | Non specificato | Tedesco buono | Da definire | ANFORDERUNGSPROFIL:Erfahrung mit Pasta & Pizze... | [Austria] | NaN | NaN |
46 | 6171903000036 | Norvegia\nHesla Gaard | 1 | Maid / Housekeeping assistant | Tempo determinato da aprile a dicembre | Inglese fluente | 20.000 NOK mese | Responsibility for cleaning off our apartments... | [Norway] | 4.0 | 12.0 |
47 | 9909319 | Finlandia | 1 | Test Designer | Non specificato | Inglese fluente | Da definire | As Test Designer in R&D Devices team you will:... | [Finland] | NaN | NaN |
48 | ID-11239341 | Cipro Grecia Spagna | 5 | Animateur 2019 (m/w) | Tempo determinato aprile-ottobre | Tedesco; inglese buono | 800\n€/mese | Deine Fähigkeiten: Im Vordergrund steht Deine ... | [Cyprus, Greece, Spain] | NaN | NaN |
49 | 10000-1167068836-S | Germania | 2 | Verkaufshilfe im Souvenirshop (m/w/d) 5 Tage-W... | Contratto stagionale fino a novembre 2019 | Tedesco buono; Inglese buono | Da definire | Wir bieten: Einen zukunftssicheren, saisonalen... | [] | NaN | NaN |
50 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese francese; Italiano fluente | Da definire | Description : Au sein d'une équipe de 10 perso... | [France] | NaN | NaN |
51 | 4956299 | Belgio | 1 | ACCOUNT MANAGER EXPORT ITALIE - HAYS - StepSto... | Non specificato | Inglese francese; Italiano fluente | Da definire | Votre profil : Pour ce poste, nous recherchons... | [Belgium] | NaN | NaN |
52 | - | Austria\nPfenninger Alm | 1 | Cameriere e Commis de rang | Non specificato | Inglese buono; tedesco preferibile | 1500-1600\n€/mese | Lavoro estivo nella periferia di Salisburgo. E... | [Austria] | NaN | NaN |
3. Required languages
Now we will try to extract required languages.
3.1 function reqlan
✪✪✪ First implement function reqlan
that given a string from column 'Required language'
produces a dictionary with extracted languages and associated level code in CEFR standard (Common European Framework of Reference for Languages).
Example:
>>> reqlan("Italiano; Francese fluente; Spagnolo buono")
{'italian': 'C1', 'french': 'C1', 'spanish': 'B2'}
To know what italian words are to be translated to, use dictionaries provided in the following cell.
See tests for more cases to handle.
WARNING 1: function takes a single string !!
WARNING 2: BE VERY CAREFUL WITH NaN input !
Function might also take a NaN value (math.nan
or np.nan
they are the same), in which case it should RETURN an empty dictionary:
>>> reqlan(np.nan)
{}
If you are checking for a NaN, DO NOT write
if text == np.nan: # WRONG !
To see why, do read NaNs and Infinities section in Numpy Matrices worksheet !
Show solution[13]:
languages = {
'italiano':'italian',
'tedesco':'german',
'francese':'french',
'inglese':'english',
'spagnolo':'spanish',
}
lang_levels = {
'discreto':'B1',
'buono':'B2',
'fluente':'C1',
}
def reqlan(text):
raise Exception('TODO IMPLEMENT ME !')
# different languages may have different skills
assert reqlan("Italiano fluente; Inglese buono") == {'italian': 'C1',
'english': 'B2'}
# a sequence of languages terminating with a level is assumed to have that same level
assert reqlan("Inglese; italiano; francese fluente") == {'english': 'C1',
'italian':'C1',
'french' : 'C1'}
# semicolon absence shouldn't be a problem
assert reqlan("Tedesco italiano discreto") == {
'german':'B1',
'italian': 'B1'
}
# we can have multiple sequences
assert reqlan("Italiano; Francese fluente; Spagnolo buono") == {'italian': 'C1',
'french': 'C1',
'spanish': 'B2'}
# text after plus needs to be removed
assert reqlan("Inglese fluente + Vedi testo") == {'english': 'C1'}
# plural.
# NOTE: to do this, assume all plurals in the world
# are constructed by substituing 'i' to last character of singular words
assert reqlan("Tedesco e italiano fluenti") == {'german':'C1',
'italian':'C1'}
# special case: we ignore codes in parentheses and just put B2
assert reqlan("Inglese Buono (B1-B2); Tedesco base") == {'english': 'B2'}
# e/o: and / or case. We simplify and just list them as others
assert reqlan("Tedesco fluente; francese e/o italiano buono") == { 'german':'C1',
'french':'B2',
'italian':'B2'
}
# of course there is a cell which is NaN :P
assert reqlan(np.nan) == {}
3.2 Languages column
✪ Now add the languages
column using the previously defined reqlan
function:
[14]:
# write here
[15]:
print()
print(" ******************* SOLUTION OUTPUT ***********************")
offers
******************* SOLUTION OUTPUT ***********************
[15]:
Reference | Workplace | Positions | Qualification | Contract type | Required languages | Gross retribution | Offer description | Workplace Country | From | To | Languages | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | 18331901000024 | Norvegia | 6 | Restaurant staff | Tempo determinato da maggio ad agosto | Inglese fluente + Vedi testo | Da 3500\nFr/\nmese | We will be working together with sales, prepar... | [Norway] | 5.0 | 8.0 | {'english': 'C1'} |
1 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese; italiano; francese fluente | Da definire | Vos missions principales sont les suivantes : ... | [France] | NaN | NaN | {'english': 'C1', 'italian': 'C1', 'french': '... |
2 | 4954752 | Danimarca | 1 | Italian Sales Representative | Non specificato | Inglese; Italiano fluente | Da definire | Minimum 2 + years sales experience, preferably... | [Denmark] | NaN | NaN | {'english': 'C1', 'italian': 'C1'} |
3 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... | [] | NaN | NaN | {'english': 'B2'} |
4 | 10531631 | Svezia | 1 | Italian speaking purchase | Non specificato | Inglese; italiano fluente | Da definire | This is a varied Purchasing role, where your m... | [Sweden] | NaN | NaN | {'english': 'C1', 'italian': 'C1'} |
5 | 51485 | Islanda | 1 | Pizza chef | Tempo determinato | Inglese Buono | Da definire | Job details/requirements: Experience in making... | [Iceland] | NaN | NaN | {'english': 'B2'} |
6 | 4956299 | Danimarca | 1 | Regional Key account manager - Italy | Non specificato | Inglese; italiano fluente | Da definire | Requirements: possess good business acumen; ar... | [Denmark] | NaN | NaN | {'english': 'C1', 'italian': 'C1'} |
7 | - | Italia\nLazise | 1 | Receptionist | Non specificato | Inglese; Tedesco fluente + Vedi testo | Min 1500€\nMax\n1800€\nnetto\nmese | Camping Village Du Parc, Lazise,Italy is looki... | [Italy] | NaN | NaN | {'english': 'C1', 'german': 'C1'} |
8 | 2099681 | Irlanda | 11 | Customer Service Representative in Athens | Non specificato | Italiano fluente; Inglese buono | Da definire | Responsibilities: Solving customers queries by... | [Ireland] | NaN | NaN | {'italian': 'C1', 'english': 'B2'} |
9 | 12091902000474 | Norvegia | 1 | Dispatch personnel | Maggio – agosto 2019 | Inglese fluente + Vedi testo | Da definire | The Dispatch Team works outside in all weather... | [Norway] | 5.0 | 5.0 | {'english': 'C1'} |
10 | 10000-1169373760-S | Svizzera | 1 | Mitarbeiter (m/w/d) im Verkaufsinnendienst | Non specificato | Tedesco fluente; francese e/o italiano buono | Da definire | Was Sie erwartet: telefonische und persönliche... | [Switzerland] | NaN | NaN | {'german': 'C1', 'french': 'B2', 'italian': 'B2'} |
11 | 10000-1168768920-S | Germania | 1 | Vertriebs assistent | Non specificato | Tedesco ed inglese fluente + italiano e/o spag... | Da definire | Ihre Tätigkeit: enge Zusammenarbeit mit unsere... | [] | NaN | NaN | {'german': 'C1', 'english': 'C1', 'italian': '... |
12 | 082BMLG | Francia | 1 | Second / Seconde de cuisine | Tempo determinato da aprile ad ottobre 2019 | Francese discreto | Da definire | Missions : Vous serez en charge de la mise en ... | [France] | 4.0 | 10.0 | {'french': 'B1'} |
13 | 23107550 | Svezia | 1 | Waiter/Waitress | Non specificato | Inglese ed Italiano buono | Da definire | Bar Robusta are looking for someone that speak... | [Sweden] | NaN | NaN | {'english': 'B2', 'italian': 'B2'} |
14 | 11949-11273083-S | Austria | 1 | Empfangskraft | Non specificato | Tedesco ed Inglese Fluente + vedi testo | Da definire | Erfolgreich abgeschlossene Ausbildung in der H... | [Austria] | NaN | NaN | {'german': 'C1', 'english': 'C1'} |
15 | 18331901000024 | Norvegia | 6 | Salesclerk | Da maggio ad ottobre | Inglese fluente + Vedi testo | Da definire | We will be working together with sales, prepar... | [Norway] | 5.0 | 10.0 | {'english': 'C1'} |
16 | ID-11252967 | Austria | 1 | Verkaufssachbearbeiter für Italien (m/w) | Non specificato | Tedesco e italiano fluenti | 2574,68 Euro/\nmese | Unsere Anforderungen: Sie haben eine kaufmänni... | [Austria] | NaN | NaN | {'german': 'C1', 'italian': 'C1'} |
17 | 10000-1162270517-S | Germania | 1 | Koch/Köchin | Non specificato | Italiano e tedesco buono | Da definire | Kenntnisse und Fertigkeiten: Erfolgreich abges... | [] | NaN | NaN | {'italian': 'B2', 'german': 'B2'} |
18 | 2100937 | Irlanda | 1 | Garden Centre Assistant | Non specificato | Inglese fluente | Da definire | Applicants should have good plant knowledge an... | [Ireland] | NaN | NaN | {'english': 'C1'} |
19 | WBS697919 | Paesi Bassi | 5 | Strawberries and Rhubarb processors | Da maggio a settembre | NaN | Vedi testo | In this job you will be busy picking strawberr... | [Netherlands] | 5.0 | 9.0 | {} |
20 | 19361902000002 | Norvegia | 2 | Cleaners/renholdere Fishing Camp 2019 season | Tempo determinato da aprile ad ottobre 2019 | Inglese fluente | Da definire | Torsvåg Havfiske, estbl. 2005, is a touristcom... | [Norway] | 4.0 | 10.0 | {'english': 'C1'} |
21 | 2095000 | Spagna | 15 | Customer service agent for solar energy | Non specificato | Inglese e tedesco fluenti | €21,000 per annum + 3.500 | One of our biggest clients offer a wide range ... | [Spain] | NaN | NaN | {'english': 'C1', 'german': 'C1'} |
22 | 58699222 | Norvegia | 1 | Receptionists tourist hotel | Da maggio a settembre o da giugno ad agosto | Inglese Fluente; francese e/o spagnolo buoni | Da definire | The job also incl communication with the kitch... | [Norway] | 5.0 | 9.0 | {'english': 'C1'} |
23 | 10000-1169431325-S | Svizzera | 1 | Reiseverkehrskaufmann/-frau - Touristik | Non specificato | Tedesco Fluente + Vedi testo | Da definire | Wir erwarten: Abgeschlossene Reisebüroausbildu... | [Switzerland] | NaN | NaN | {'german': 'C1'} |
24 | 082QNLW | Francia | 1 | Assistant administratif export avec Italie (H/F) | Non specificato | Francese ed italiano fluenti | Da definire | Vous serez en charge des missions suivantes po... | [France] | NaN | NaN | {'french': 'C1', 'italian': 'C1'} |
25 | 2101510 | Irlanda | 1 | Receptionist | Non specificato | Inglese fluente; Tedesco discreto | Da definire | Receptionist required for the 2019 Season. Kno... | [Ireland] | NaN | NaN | {'english': 'C1', 'german': 'B1'} |
26 | 171767 | Spagna | 300 | Seasonal worker in a strawberry farm | Da febbraio a giugno | NaN | Da definire | Peon agricola (recolector fresa) / culegator d... | [Spain] | 2.0 | 6.0 | {} |
27 | 14491903000005 | Norvegia\nMøre e Romsdal e Sogn og Fjordane. | 6 | Guider | Tempo determinato da maggio a settembre | Tedesco e inglese fluente + Italiano buono | 20000 NOK /mese | We require that you: are at least 20 years old... | [Norway] | 5.0 | 9.0 | {'german': 'C1', 'english': 'C1', 'italian': '... |
28 | 10000-1167210671-S | Germania | 1 | Sales Manager Südeuropa m/w | Tempo indeterminato | Inglese e tedesco fluente + Italiano e/o spagn... | Da definire | Ihr Profil :Idealerweise Erfahrung in der Text... | [] | NaN | NaN | {'english': 'C1', 'german': 'C1', 'italian': '... |
29 | 507 | Italia\ned\nestero | 25 | Animatori - coreografi - ballerini - istruttor... | Tempo determinato da aprile ad ottobre | Inglese Buono + Vedi testo | Vedi testo | Padronanza di una o più lingue tra queste (ita... | [Italy, abroad] | 4.0 | 10.0 | {'english': 'B2'} |
30 | 846727 | Belgio | 1 | Junior Buyer Italian /English (m/v) | Non specificato | Inglese Ed italiano fluente | Da definire | You have a Bachelor degree. 2-3 years of profe... | [Belgium] | NaN | NaN | {'english': 'C1', 'italian': 'C1'} |
31 | 10531631 | Svezia\nLund | 1 | Italian Speaking Sales Administration Officer | Tempo indeterminato | Inglese ed italiano fluente | Da definire | You will focus on: Act as our main contact for... | [Sweden] | NaN | NaN | {'english': 'C1', 'italian': 'C1'} |
32 | 082ZFDB | Francia | 1 | Assistant Administratif et Commercial Bilingue... | Non specificato | Francese ed italiano fluente | Da definire | Au sein de l'équipe administrative, vous trava... | [France] | NaN | NaN | {'french': 'C1', 'italian': 'C1'} |
33 | 1807568 | Regno Unito | 1 | Account Manager - German, Italian, Spanish, Dutch | Non specificato | Inglese Fluente + Vedi testo | £25,000 per annum | Account Manager The Candidate You will be an e... | [United Kingdom] | NaN | NaN | {'english': 'C1'} |
34 | 2103264 | Irlanda | 1 | Receptionist - Summer | Da maggio a settembre | Inglese fluente | Da definire | Assist with any ad-hoc project as required by ... | [Ireland] | 5.0 | 9.0 | {'english': 'C1'} |
35 | ID-11146984 | Austria Klagenfurt | 1 | Nachwuchsführungskraft im Agrarhandel / Traine... | Non specificato | Tedesco; Italiano buono | 1.950\nEuro/ mese | Ihre Qualifikationen: landwirtschaftliche Ausb... | [Austria] | NaN | NaN | {'german': 'B2', 'italian': 'B2'} |
36 | - | Berlino\nTrento | 1 | Apprendista perito elettronico; Elettrotecnico | Inizialmente contratto di apprendistato con po... | Inglese Buono (B1-B2); Tedesco base | Min 1000\nMax\n1170\n€/mese | Ti stai diplomando e/o stai cercando un primo ... | [] | NaN | NaN | {'english': 'B2'} |
37 | 243096 | Spagna | 1 | Customer Service with French and Italian | Non specificato | Italiano; Francese fluente; Spagnolo buono | Da definire | As an IT Helpdesk, you will be responsible for... | [Spain] | NaN | NaN | {'italian': 'C1', 'french': 'C1', 'spanish': '... |
38 | 9909319 | Francia | 1 | Commercial Web Italie (H/F) | Non specificato | Italiano; Francese fluente | Da definire | Profil : Première expérience réussie dans la v... | [France] | NaN | NaN | {'italian': 'C1', 'french': 'C1'} |
39 | WBS1253419 | Paesi\nBassi | 1 | Customer service employee Dow | Tempo determinato | Inglese; italiano fluente + vedi testo | Da definire | Requirements: You have a bachelor degree or hi... | [Netherlands] | NaN | NaN | {'english': 'C1', 'italian': 'C1'} |
40 | 70cb25b1-5510-11e9-b89f-005056ac086d | Svizzera | 1 | Hauswart/In | Non specificato | Tedesco buono | Da definire | Wir suchen in unserem Team einen Mitarbeiter m... | [Switzerland] | NaN | NaN | {'german': 'B2'} |
41 | 10000-1170625924-S | Germania | 1 | Monteur (m/w/d) Photovoltaik (Elektroanlagenmo... | Non specificato | Tedesco e/o inglese buono | Da definire | Anforderungen an die Bewerber/innen: abgeschlo... | [] | NaN | NaN | {'german': 'B2', 'english': 'B2'} |
42 | 2106868 | Irlanda | 1 | Retail Store Assistant | Non specificato | Inglese Fluente | Da definire | Retail Store Assistant required for a SPAR sho... | [Ireland] | NaN | NaN | {'english': 'C1'} |
43 | 23233743 | Svezia | 1 | E-commerce copywriter | Non specificato | Inglese Fluente + vedi testo | Da definire | We support 15 languages incl Chinese, Russian ... | [Sweden] | NaN | NaN | {'english': 'C1'} |
44 | ID-11478229 | Italia\nAustria | 1 | Forstarbeiter/in | Aprile – maggio 2019 | Tedesco italiano discreto | €9,50\n/ora | ANFORDERUNGSPROFIL: Pflichtschulabschluss und ... | [Italy, Austria] | 4.0 | 4.0 | {'german': 'B1', 'italian': 'B1'} |
45 | ID-11477956 | Austria | 1 | Koch/Köchin für italienische Küche in Teilzeit | Non specificato | Tedesco buono | Da definire | ANFORDERUNGSPROFIL:Erfahrung mit Pasta & Pizze... | [Austria] | NaN | NaN | {'german': 'B2'} |
46 | 6171903000036 | Norvegia\nHesla Gaard | 1 | Maid / Housekeeping assistant | Tempo determinato da aprile a dicembre | Inglese fluente | 20.000 NOK mese | Responsibility for cleaning off our apartments... | [Norway] | 4.0 | 12.0 | {'english': 'C1'} |
47 | 9909319 | Finlandia | 1 | Test Designer | Non specificato | Inglese fluente | Da definire | As Test Designer in R&D Devices team you will:... | [Finland] | NaN | NaN | {'english': 'C1'} |
48 | ID-11239341 | Cipro Grecia Spagna | 5 | Animateur 2019 (m/w) | Tempo determinato aprile-ottobre | Tedesco; inglese buono | 800\n€/mese | Deine Fähigkeiten: Im Vordergrund steht Deine ... | [Cyprus, Greece, Spain] | NaN | NaN | {'german': 'B2', 'english': 'B2'} |
49 | 10000-1167068836-S | Germania | 2 | Verkaufshilfe im Souvenirshop (m/w/d) 5 Tage-W... | Contratto stagionale fino a novembre 2019 | Tedesco buono; Inglese buono | Da definire | Wir bieten: Einen zukunftssicheren, saisonalen... | [] | NaN | NaN | {'german': 'B2', 'english': 'B2'} |
50 | 083PZMM | Francia | 1 | Assistant export trilingue italien et anglais ... | Non specificato | Inglese francese; Italiano fluente | Da definire | Description : Au sein d'une équipe de 10 perso... | [France] | NaN | NaN | {'english': 'C1', 'french': 'C1', 'italian': '... |
51 | 4956299 | Belgio | 1 | ACCOUNT MANAGER EXPORT ITALIE - HAYS - StepSto... | Non specificato | Inglese francese; Italiano fluente | Da definire | Votre profil : Pour ce poste, nous recherchons... | [Belgium] | NaN | NaN | {'english': 'C1', 'french': 'C1', 'italian': '... |
52 | - | Austria\nPfenninger Alm | 1 | Cameriere e Commis de rang | Non specificato | Inglese buono; tedesco preferibile | 1500-1600\n€/mese | Lavoro estivo nella periferia di Salisburgo. E... | [Austria] | NaN | NaN | {'english': 'B2'} |
Continue
Go on with the challenges