{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "2383b3ff", "metadata": {}, "outputs": [ { "ename": "ModuleNotFoundError", "evalue": "No module named 'langdetect'", "output_type": "error", "traceback": [ "\u001b[31m---------------------------------------------------------------------------\u001b[39m", "\u001b[31mModuleNotFoundError\u001b[39m Traceback (most recent call last)", "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[2]\u001b[39m\u001b[32m, line 5\u001b[39m\n\u001b[32m 2\u001b[39m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34;01mdatetime\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m datetime\n\u001b[32m 3\u001b[39m \u001b[38;5;28;01mimport\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34;01mre\u001b[39;00m\n\u001b[32m----> \u001b[39m\u001b[32m5\u001b[39m \u001b[38;5;28;01mfrom\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34;01mlangdetect\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mimport\u001b[39;00m detect\n\u001b[32m 6\u001b[39m \u001b[38;5;28;01mimport\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34;01mos\u001b[39;00m\n", "\u001b[31mModuleNotFoundError\u001b[39m: No module named 'langdetect'" ] } ], "source": [ "import pandas as pd\n", "from datetime import datetime\n", "import re\n", "\n", "from langdetect import detect\n", "import os" ] }, { "cell_type": "markdown", "id": "4c94bff5", "metadata": {}, "source": [ "## Analizamos resultados\n", "\n", "Vemos que curiosamente la `empresa` y la `duración de jornada` son campos que están vacíos en casi todas las ofertas" ] }, { "cell_type": "code", "execution_count": null, "id": "3fa7445a", "metadata": {}, "outputs": [], "source": [ "def read_file(path):\n", " df = pd.read_csv(path)#(\"ofertas/ofertas11_092659.csv\")\n", " filasNulas = df[df.isna().sum(axis=\"columns\") >= df.shape[1]-1]\n", "\n", " print(f\"El dataset tiene {df.shape[0]} ofertas, de las cuales, {filasNulas.shape[0]} están vacías (excepto la url)\")\n", " print(\"\\nNúmero de nulos por columna, excluyendo filas completamente nulas:\")\n", " print(df.isna().sum()[df.isna().sum() > filasNulas.shape[0]] - filasNulas.shape[0])\n", "\n", " return df, df.drop(filasNulas.index)" ] }, { "cell_type": "code", "execution_count": null, "id": "86d881e2", "metadata": {}, "outputs": [], "source": [ "clean = read_file(\"\")" ] }, { "cell_type": "code", "execution_count": 4, "id": "ebd41d23", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array(['11/10/2025', '08/10/2025', '10/10/2025'], dtype=object)" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean[\"fecha_publicacion\"].unique()" ] }, { "cell_type": "code", "execution_count": null, "id": "8550bf83", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array(['16/09/2025', '19/11/2025', '15/10/2025', '31/10/2025',\n", " '29/10/2025', '16/10/2025', '15/11/2025', '19/10/2025',\n", " '21/11/2025', '16/11/2025', '25/10/2025', '30/10/2025',\n", " '23/10/2025', '10/10/2025', '11/10/2025', '17/11/2025',\n", " '20/10/2025', '18/10/2025', '24/11/2025', '31/12/2025',\n", " '22/10/2025', '27/10/2025', '24/10/2025', '21/10/2025',\n", " '25/11/2025', '18/11/2025', '20/11/2025', '14/10/2025',\n", " '7/11/2025', nan, '11/11/2025', '26/11/2025', '17/10/2025',\n", " '26/10/2025', '27/11/2025', '29/11/2025', '1/01/2026',\n", " '23/11/2025', '28/11/2025', '29/12/2025', '13/10/2025',\n", " '28/10/2025', '26/10/2026', '1/12/2025', '2/11/2025', '30/12/2025',\n", " '2/12/2025', '1/11/2025', '3/11/2025', '12/10/2025', '5/12/2025',\n", " '3/12/2025', '4/12/2025', '4/11/2025', '30/11/2025', '7/12/2025',\n", " '8/12/2025', '11/12/2025', '9/12/2025', '8/11/2025', '10/12/2025',\n", " '10/11/2025', '9/11/2025', '6/11/2025', '30/01/2026', '12/12/2025',\n", " '13/12/2025', '15/12/2025', '14/11/2025', '16/12/2025',\n", " '12/11/2025', '17/12/2025', '18/12/2025', '21/03/2026',\n", " '19/12/2025', '14/12/2025', '22/12/2025', '23/12/2025',\n", " '21/12/2025', '22/11/2025', '24/12/2025', '25/12/2025',\n", " '26/12/2025', '31/10/2026', '2/01/2026', '28/12/2025', '3/01/2026',\n", " '5/11/2025', '4/01/2026', '4/03/2026', '5/01/2026', '6/01/2026',\n", " '7/01/2026', '6/12/2025', '27/03/2026', '15/01/2026', '15/02/2026',\n", " '13/11/2025'], dtype=object)" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean[\"fecha_limite\"].unique()" ] }, { "cell_type": "code", "execution_count": 34, "id": "af07a3ab", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "((9685, 12), (7435, 12))" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean_es = clean[clean['descripcion'].apply(lambda r: detect(r) == 'es')]\n", "clean.shape, clean_es.shape" ] }, { "cell_type": "code", "execution_count": 35, "id": "b2a64e2e", "metadata": {}, "outputs": [], "source": [ "clean_es.to_csv(\"ofertasRaw.csv\")" ] }, { "cell_type": "markdown", "id": "eaa470d2", "metadata": {}, "source": [ "## Gestionar valores duplicados y NaN" ] }, { "cell_type": "code", "execution_count": 17, "id": "c67fd09c", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "np.int64(0)" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean = pd.read_csv(\"ofertasRaw.csv\").drop([\"Unnamed: 0\"], axis=\"columns\")\n", "clean.drop_duplicates(subset=['url'], inplace=True)\n", "clean.duplicated().sum()" ] }, { "cell_type": "code", "execution_count": 18, "id": "454cb0ba", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
fecha_publicacionfecha_limitetituloempresaocupacioneducaciondescripcionpaisregionduracion_jornadatipo_contrato
url
https://europa.eu/eures/portal/jv-se/jv-details/NzE4NDAzMCAxMDI?lang=es10/10/202531/10/2025CONDUCTORES DE CAMIÓN, EN GENERALNaNConductor de vehículo de carga/conductora de v...ContratoREQUIERE ESTAR EN POSESIÓN DEL CAP. LA EMPRESA...EspañaPalencia -NaNContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyMDEwMCAxMDI?lang=es10/10/202510/10/2025WORK/LOCATIONNaNEmpleado administrativo de archivos/empleada a...ContratoES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA...EspañaTarragona -NaNContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyNzY1MCAxMDI?lang=es10/10/202524/10/2025WORK/LOCATIONNaNOperario especializado en engranajes de automo...ContratoCERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA...EspañaGirona -NaNContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyMDg4OSAxMDI?lang=es10/10/202513/10/2025WORK/LOCATIONNaNEmpleado del hogar/empleada del hogarContratoIMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI...EspañaBarcelona -NaNContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyNDgzOSAxMDI?lang=es10/10/202520/10/2025WORK/LOCATIONNaNConductor de servicios de transporte de enferm...DeterminadoREQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM...EspañaBarcelona -NaNDeterminado
....................................
https://europa.eu/eures/portal/jv-se/jv-details/NzIzOTcwNyAxMDI?lang=es11/10/202520/11/2025WORK/LOCATIONNaNInspector de carga y flete/inspectora de carga...DeterminadoACTUALMENTE, DESDE LA DELEGACIÓN DE TARRAGONA ...EspañaBarcelona -NaNDeterminado
https://europa.eu/eures/portal/jv-se/jv-details/NzIzOTcxNiAxMDI?lang=es11/10/202520/11/2025WORK/LOCATIONNaNProfesor de autoescuela/profesora de autoescuelaAutónomoNDICE CONSULTORÍA Y FORMACIÓN, SOMOS UNA CONSU...EspañaBarcelona -NaNAutónomo
https://europa.eu/eures/portal/jv-se/jv-details/NzIzOTczMiAxMDI?lang=es11/10/202520/11/2025WORK/LOCATIONNaNMayordomo del servicio domésticoContratoHELPOINT -ÉS UNA CONSULTORIA ÚNICA ESPECIALITZ...EspañaBarcelona -NaNContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIzOTczNSAxMDI?lang=es10/10/202522/10/2025MONITOR/A ROBÓTICA EDUCATIVA - LLANES Y CANGAS...NaNMaestro de educación primaria/maestra de educa...DeterminadoFUNCIONES: Preparar actividades y proyectos di...EspañaAsturias -NaNDeterminado
https://europa.eu/eures/portal/jv-se/jv-details/NzIzOTgzOCAxMDI?lang=es11/10/202513/10/2025DOCENTE PARA IMPARTIR CURSONaNNaNDeterminadoIMPARTIR MÓDULOS: - OFIMÁTICA - INICIACIÓN A I...EspañaAlbacete -NaNDeterminado
\n", "

7305 rows × 11 columns

\n", "
" ], "text/plain": [ " fecha_publicacion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... 11/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 11/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 11/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 11/10/2025 \n", "\n", " fecha_limite \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... 31/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 24/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 13/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 20/10/2025 \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... 20/11/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 20/11/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 20/11/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 22/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 13/10/2025 \n", "\n", " titulo \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... CONDUCTORES DE CAMIÓN, EN GENERAL \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... MONITOR/A ROBÓTICA EDUCATIVA - LLANES Y CANGAS... \n", "https://europa.eu/eures/portal/jv-se/jv-details... DOCENTE PARA IMPARTIR CURSO \n", "\n", " empresa \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "\n", " ocupacion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... Conductor de vehículo de carga/conductora de v... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Empleado administrativo de archivos/empleada a... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Operario especializado en engranajes de automo... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Empleado del hogar/empleada del hogar \n", "https://europa.eu/eures/portal/jv-se/jv-details... Conductor de servicios de transporte de enferm... \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Inspector de carga y flete/inspectora de carga... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Profesor de autoescuela/profesora de autoescuela \n", "https://europa.eu/eures/portal/jv-se/jv-details... Mayordomo del servicio doméstico \n", "https://europa.eu/eures/portal/jv-se/jv-details... Maestro de educación primaria/maestra de educa... \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "\n", " educacion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "https://europa.eu/eures/portal/jv-se/jv-details... Autónomo \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "\n", " descripcion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... REQUIERE ESTAR EN POSESIÓN DEL CAP. LA EMPRESA... \n", "https://europa.eu/eures/portal/jv-se/jv-details... ES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA... \n", "https://europa.eu/eures/portal/jv-se/jv-details... CERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA... \n", "https://europa.eu/eures/portal/jv-se/jv-details... IMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI... \n", "https://europa.eu/eures/portal/jv-se/jv-details... REQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM... \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... ACTUALMENTE, DESDE LA DELEGACIÓN DE TARRAGONA ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... NDICE CONSULTORÍA Y FORMACIÓN, SOMOS UNA CONSU... \n", "https://europa.eu/eures/portal/jv-se/jv-details... HELPOINT -ÉS UNA CONSULTORIA ÚNICA ESPECIALITZ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... FUNCIONES: Preparar actividades y proyectos di... \n", "https://europa.eu/eures/portal/jv-se/jv-details... IMPARTIR MÓDULOS: - OFIMÁTICA - INICIACIÓN A I... \n", "\n", " pais region \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Palencia - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Tarragona - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Girona - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona - \n", "... ... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Asturias - \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Albacete - \n", "\n", " duracion_jornada \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "\n", " tipo_contrato \n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "... ... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "https://europa.eu/eures/portal/jv-se/jv-details... Autónomo \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado \n", "\n", "[7305 rows x 11 columns]" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean.set_index(\"url\")" ] }, { "cell_type": "code", "execution_count": 19, "id": "252a049e", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "url 0\n", "fecha_publicacion 0\n", "fecha_limite 6\n", "titulo 0\n", "empresa 7241\n", "ocupacion 735\n", "educacion 0\n", "descripcion 0\n", "pais 0\n", "region 115\n", "duracion_jornada 7305\n", "tipo_contrato 2\n", "dtype: int64" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean.isna().sum()" ] }, { "cell_type": "markdown", "id": "ccb1d66f", "metadata": {}, "source": [ "Hay que borrar filas de fecha nula" ] }, { "cell_type": "code", "execution_count": 20, "id": "5c8420b0", "metadata": {}, "outputs": [], "source": [ "clean.dropna(subset=\"fecha_limite\", inplace=True)" ] }, { "cell_type": "code", "execution_count": 21, "id": "cda7e3ff", "metadata": {}, "outputs": [], "source": [ "def cleanDash(region):\n", " if type(region) == str:\n", " if region[-1] == \"-\":\n", " region = region[:-1]\n", " return region.strip()\n", " return region\n", "\n", "clean[\"region\"] = clean[\"region\"].apply(cleanDash)" ] }, { "cell_type": "code", "execution_count": 22, "id": "33b6c70a", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
urlfecha_publicacionfecha_limitetituloempresaocupacioneducaciondescripcionpaisregionduracion_jornadatipo_contrato
0https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202531/10/2025CONDUCTORES DE CAMIÓN, EN GENERALNaNConductor de vehículo de carga/conductora de v...ContratoREQUIERE ESTAR EN POSESIÓN DEL CAP. LA EMPRESA...EspañaPalenciaNaNContrato
1https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202510/10/2025WORK/LOCATIONNaNEmpleado administrativo de archivos/empleada a...ContratoES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA...EspañaTarragonaNaNContrato
2https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202524/10/2025WORK/LOCATIONNaNOperario especializado en engranajes de automo...ContratoCERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA...EspañaGironaNaNContrato
3https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202513/10/2025WORK/LOCATIONNaNEmpleado del hogar/empleada del hogarContratoIMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI...EspañaBarcelonaNaNContrato
4https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202520/10/2025WORK/LOCATIONNaNConductor de servicios de transporte de enferm...DeterminadoREQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM...EspañaBarcelonaNaNDeterminado
\n", "
" ], "text/plain": [ " url fecha_publicacion \\\n", "0 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "1 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "2 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "3 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "4 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "\n", " fecha_limite titulo empresa \\\n", "0 31/10/2025 CONDUCTORES DE CAMIÓN, EN GENERAL NaN \n", "1 10/10/2025 WORK/LOCATION NaN \n", "2 24/10/2025 WORK/LOCATION NaN \n", "3 13/10/2025 WORK/LOCATION NaN \n", "4 20/10/2025 WORK/LOCATION NaN \n", "\n", " ocupacion educacion \\\n", "0 Conductor de vehículo de carga/conductora de v... Contrato \n", "1 Empleado administrativo de archivos/empleada a... Contrato \n", "2 Operario especializado en engranajes de automo... Contrato \n", "3 Empleado del hogar/empleada del hogar Contrato \n", "4 Conductor de servicios de transporte de enferm... Determinado \n", "\n", " descripcion pais region \\\n", "0 REQUIERE ESTAR EN POSESIÓN DEL CAP. LA EMPRESA... España Palencia \n", "1 ES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA... España Tarragona \n", "2 CERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA... España Girona \n", "3 IMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI... España Barcelona \n", "4 REQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM... España Barcelona \n", "\n", " duracion_jornada tipo_contrato \n", "0 NaN Contrato \n", "1 NaN Contrato \n", "2 NaN Contrato \n", "3 NaN Contrato \n", "4 NaN Determinado " ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean.head()" ] }, { "cell_type": "markdown", "id": "52591110", "metadata": {}, "source": [ "### Columnas sin informacion" ] }, { "cell_type": "code", "execution_count": null, "id": "10494817", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(7299, 9)" ] }, "execution_count": 23, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean.set_index(\"url\", inplace= True)\n", "clean.drop([\"educacion\", \"duracion_jornada\", \"empresa\"], inplace= True, axis=\"columns\")\n", "clean.shape" ] }, { "cell_type": "code", "execution_count": 24, "id": "7dcf3049", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
fecha_publicacionfecha_limitetituloempresaocupaciondescripcionpaisregiontipo_contrato
url
https://europa.eu/eures/portal/jv-se/jv-details/NzE4NDAzMCAxMDI?lang=es10/10/202531/10/2025CONDUCTORES DE CAMIÓN, EN GENERALNaNConductor de vehículo de carga/conductora de v...REQUIERE ESTAR EN POSESIÓN DEL CAP. LA EMPRESA...EspañaPalenciaContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyMDEwMCAxMDI?lang=es10/10/202510/10/2025WORK/LOCATIONNaNEmpleado administrativo de archivos/empleada a...ES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA...EspañaTarragonaContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyNzY1MCAxMDI?lang=es10/10/202524/10/2025WORK/LOCATIONNaNOperario especializado en engranajes de automo...CERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA...EspañaGironaContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyMDg4OSAxMDI?lang=es10/10/202513/10/2025WORK/LOCATIONNaNEmpleado del hogar/empleada del hogarIMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI...EspañaBarcelonaContrato
https://europa.eu/eures/portal/jv-se/jv-details/NzIyNDgzOSAxMDI?lang=es10/10/202520/10/2025WORK/LOCATIONNaNConductor de servicios de transporte de enferm...REQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM...EspañaBarcelonaDeterminado
\n", "
" ], "text/plain": [ " fecha_publicacion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "\n", " fecha_limite \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... 31/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 10/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 24/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 13/10/2025 \n", "https://europa.eu/eures/portal/jv-se/jv-details... 20/10/2025 \n", "\n", " titulo \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... CONDUCTORES DE CAMIÓN, EN GENERAL \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "https://europa.eu/eures/portal/jv-se/jv-details... WORK/LOCATION \n", "\n", " empresa \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "https://europa.eu/eures/portal/jv-se/jv-details... NaN \n", "\n", " ocupacion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... Conductor de vehículo de carga/conductora de v... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Empleado administrativo de archivos/empleada a... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Operario especializado en engranajes de automo... \n", "https://europa.eu/eures/portal/jv-se/jv-details... Empleado del hogar/empleada del hogar \n", "https://europa.eu/eures/portal/jv-se/jv-details... Conductor de servicios de transporte de enferm... \n", "\n", " descripcion \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... REQUIERE ESTAR EN POSESIÓN DEL CAP. LA EMPRESA... \n", "https://europa.eu/eures/portal/jv-se/jv-details... ES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA... \n", "https://europa.eu/eures/portal/jv-se/jv-details... CERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA... \n", "https://europa.eu/eures/portal/jv-se/jv-details... IMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI... \n", "https://europa.eu/eures/portal/jv-se/jv-details... REQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM... \n", "\n", " pais region \\\n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Palencia \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Tarragona \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Girona \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona \n", "https://europa.eu/eures/portal/jv-se/jv-details... España Barcelona \n", "\n", " tipo_contrato \n", "url \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Contrato \n", "https://europa.eu/eures/portal/jv-se/jv-details... Determinado " ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean.head()" ] }, { "cell_type": "code", "execution_count": 51, "id": "5179ecef", "metadata": {}, "outputs": [], "source": [ "clean.to_csv(\"ofertas.csv\")" ] }, { "cell_type": "markdown", "id": "1409da27", "metadata": {}, "source": [ "## Análisis títulos repetidos" ] }, { "cell_type": "code", "execution_count": 30, "id": "266d5584", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "titulo\n", "WORK/LOCATION 3562\n", "PERSONAL DE LIMPIEZA O LIMPIADORES EN GENERAL 110\n", "CONDUCTORES DE CAMIÓN, EN GENERAL 82\n", "COCINEROS, EN GENERAL 68\n", "ENFERMEROS DE CUIDADOS GENERALES 62\n", " ... \n", "CAMARERO/A (REF.5904) 1\n", "MOZO ALMACEN//REPARTIDOR 1\n", "MONTADORES DE GRANDES ESTRUCTURAS METÁLICAS, EN GENERAL 1\n", "AUXILIARES DE ENFERMERIA/GERIATRIA 1\n", "AUXILIAR DE AYUDA A DOMICILIO - PILOÑA 1\n", "Name: count, Length: 1923, dtype: int64" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean = pd.read_csv(\"ofertas.csv\")\n", "clean[\"titulo\"].value_counts()" ] }, { "cell_type": "code", "execution_count": 31, "id": "97db7e62", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(3737, 10)" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "descriptiveName = clean[clean[\"titulo\"] != \"WORK/LOCATION\"]\n", "descriptiveName.shape" ] }, { "cell_type": "code", "execution_count": 32, "id": "aa59c34d", "metadata": {}, "outputs": [], "source": [ "fechas = pd.to_datetime(descriptiveName.fecha_limite.unique(), dayfirst=True)" ] }, { "cell_type": "code", "execution_count": 33, "id": "05120e89", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[Timestamp('2025-10-10 00:00:00'),\n", " Timestamp('2025-10-11 00:00:00'),\n", " Timestamp('2025-10-12 00:00:00'),\n", " Timestamp('2025-10-13 00:00:00'),\n", " Timestamp('2025-10-14 00:00:00'),\n", " Timestamp('2025-10-15 00:00:00'),\n", " Timestamp('2025-10-16 00:00:00'),\n", " Timestamp('2025-10-17 00:00:00'),\n", " Timestamp('2025-10-18 00:00:00'),\n", " Timestamp('2025-10-19 00:00:00'),\n", " Timestamp('2025-10-20 00:00:00'),\n", " Timestamp('2025-10-21 00:00:00'),\n", " Timestamp('2025-10-22 00:00:00'),\n", " Timestamp('2025-10-23 00:00:00'),\n", " Timestamp('2025-10-24 00:00:00'),\n", " Timestamp('2025-10-25 00:00:00'),\n", " Timestamp('2025-10-26 00:00:00'),\n", " Timestamp('2025-10-27 00:00:00'),\n", " Timestamp('2025-10-28 00:00:00'),\n", " Timestamp('2025-10-29 00:00:00'),\n", " Timestamp('2025-10-30 00:00:00'),\n", " Timestamp('2025-10-31 00:00:00'),\n", " Timestamp('2025-11-01 00:00:00'),\n", " Timestamp('2025-11-02 00:00:00'),\n", " Timestamp('2025-11-03 00:00:00'),\n", " Timestamp('2025-11-04 00:00:00'),\n", " Timestamp('2025-11-05 00:00:00'),\n", " Timestamp('2025-11-06 00:00:00'),\n", " Timestamp('2025-11-07 00:00:00'),\n", " Timestamp('2025-11-08 00:00:00'),\n", " Timestamp('2025-11-09 00:00:00'),\n", " Timestamp('2025-11-10 00:00:00'),\n", " Timestamp('2025-11-11 00:00:00'),\n", " Timestamp('2025-11-12 00:00:00'),\n", " Timestamp('2025-11-13 00:00:00'),\n", " Timestamp('2025-11-14 00:00:00'),\n", " Timestamp('2025-11-15 00:00:00'),\n", " Timestamp('2025-11-16 00:00:00'),\n", " Timestamp('2025-11-17 00:00:00'),\n", " Timestamp('2025-11-18 00:00:00'),\n", " Timestamp('2025-11-19 00:00:00'),\n", " Timestamp('2025-11-20 00:00:00'),\n", " Timestamp('2025-11-21 00:00:00'),\n", " Timestamp('2025-11-22 00:00:00'),\n", " Timestamp('2025-11-23 00:00:00'),\n", " Timestamp('2025-11-24 00:00:00'),\n", " Timestamp('2025-11-25 00:00:00'),\n", " Timestamp('2025-11-26 00:00:00'),\n", " Timestamp('2025-11-27 00:00:00'),\n", " Timestamp('2025-11-28 00:00:00'),\n", " Timestamp('2025-11-29 00:00:00'),\n", " Timestamp('2025-11-30 00:00:00'),\n", " Timestamp('2025-12-01 00:00:00'),\n", " Timestamp('2025-12-02 00:00:00'),\n", " Timestamp('2025-12-03 00:00:00'),\n", " Timestamp('2025-12-04 00:00:00'),\n", " Timestamp('2025-12-05 00:00:00'),\n", " Timestamp('2025-12-06 00:00:00'),\n", " Timestamp('2025-12-07 00:00:00'),\n", " Timestamp('2025-12-08 00:00:00'),\n", " Timestamp('2025-12-09 00:00:00'),\n", " Timestamp('2025-12-10 00:00:00'),\n", " Timestamp('2025-12-11 00:00:00'),\n", " Timestamp('2025-12-12 00:00:00'),\n", " Timestamp('2025-12-13 00:00:00'),\n", " Timestamp('2025-12-14 00:00:00'),\n", " Timestamp('2025-12-15 00:00:00'),\n", " Timestamp('2025-12-16 00:00:00'),\n", " Timestamp('2025-12-17 00:00:00'),\n", " Timestamp('2025-12-18 00:00:00'),\n", " Timestamp('2025-12-19 00:00:00'),\n", " Timestamp('2025-12-20 00:00:00'),\n", " Timestamp('2025-12-21 00:00:00'),\n", " Timestamp('2025-12-22 00:00:00'),\n", " Timestamp('2025-12-23 00:00:00'),\n", " Timestamp('2025-12-24 00:00:00'),\n", " Timestamp('2025-12-25 00:00:00'),\n", " Timestamp('2025-12-26 00:00:00'),\n", " Timestamp('2025-12-28 00:00:00'),\n", " Timestamp('2025-12-29 00:00:00'),\n", " Timestamp('2025-12-30 00:00:00'),\n", " Timestamp('2025-12-31 00:00:00'),\n", " Timestamp('2026-01-01 00:00:00'),\n", " Timestamp('2026-01-03 00:00:00'),\n", " Timestamp('2026-01-04 00:00:00'),\n", " Timestamp('2026-01-05 00:00:00'),\n", " Timestamp('2026-01-06 00:00:00'),\n", " Timestamp('2026-01-07 00:00:00'),\n", " Timestamp('2026-01-15 00:00:00'),\n", " Timestamp('2026-01-23 00:00:00'),\n", " Timestamp('2026-02-05 00:00:00'),\n", " Timestamp('2026-02-15 00:00:00'),\n", " Timestamp('2026-02-25 00:00:00'),\n", " Timestamp('2026-03-02 00:00:00'),\n", " Timestamp('2026-03-04 00:00:00'),\n", " Timestamp('2026-03-21 00:00:00'),\n", " Timestamp('2026-10-26 00:00:00')]" ] }, "execution_count": 33, "metadata": {}, "output_type": "execute_result" } ], "source": [ "sorted(fechas)" ] }, { "cell_type": "code", "execution_count": 34, "id": "e1729010", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(3737, 9)" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ "descriptiveName.set_index(\"url\", inplace= True)\n", "descriptiveName.shape" ] }, { "cell_type": "code", "execution_count": 35, "id": "46b1bf2e", "metadata": {}, "outputs": [], "source": [ "descriptiveName.to_csv(\"ofertasDescriptive.csv\")" ] }, { "cell_type": "code", "execution_count": 36, "id": "1b7891ae", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{Timestamp('2026-01-02 00:00:00')}" ] }, "execution_count": 36, "metadata": {}, "output_type": "execute_result" } ], "source": [ "set(pd.to_datetime(clean.fecha_limite.unique(), dayfirst=True)) - set(pd.to_datetime(descriptiveName.fecha_limite.unique(), dayfirst=True))" ] }, { "cell_type": "code", "execution_count": 37, "id": "a4e92d76", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
urlfecha_publicacionfecha_limitetituloempresaocupaciondescripcionpaisregiontipo_contrato
1https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202510/10/2025WORK/LOCATIONNaNEmpleado administrativo de archivos/empleada a...ES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA...EspañaTarragonaContrato
2https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202524/10/2025WORK/LOCATIONNaNOperario especializado en engranajes de automo...CERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA...EspañaGironaContrato
3https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202513/10/2025WORK/LOCATIONNaNEmpleado del hogar/empleada del hogarIMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI...EspañaBarcelonaContrato
4https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202520/10/2025WORK/LOCATIONNaNConductor de servicios de transporte de enferm...REQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM...EspañaBarcelonaDeterminado
6https://europa.eu/eures/portal/jv-se/jv-detail...10/10/202520/10/2025WORK/LOCATIONNaNConductor de servicios de transporte de enferm...T?AGRADARIA TREBALLAR A LA FUNDACIÓ LAFACT ?LA...EspañaBarcelonaContrato
.................................
7292https://europa.eu/eures/portal/jv-se/jv-detail...11/10/202520/11/2025WORK/LOCATIONNaNEmpleado del hogar/empleada del hogarCONTRACTE DE SUBSTITUCIÓ PER MATERNITAT PER UN...EspañaTarragonaDeterminado
7293https://europa.eu/eures/portal/jv-se/jv-detail...11/10/202520/11/2025WORK/LOCATIONNaNMozo de almacén/moza de almacénEMPRESA DE SERVICIOS AUXILIARES NECESITA PERSO...EspañaBarcelonaContrato
7294https://europa.eu/eures/portal/jv-se/jv-detail...11/10/202520/11/2025WORK/LOCATIONNaNInspector de carga y flete/inspectora de carga...ACTUALMENTE, DESDE LA DELEGACIÓN DE TARRAGONA ...EspañaBarcelonaDeterminado
7295https://europa.eu/eures/portal/jv-se/jv-detail...11/10/202520/11/2025WORK/LOCATIONNaNProfesor de autoescuela/profesora de autoescuelaNDICE CONSULTORÍA Y FORMACIÓN, SOMOS UNA CONSU...EspañaBarcelonaAutónomo
7296https://europa.eu/eures/portal/jv-se/jv-detail...11/10/202520/11/2025WORK/LOCATIONNaNMayordomo del servicio domésticoHELPOINT -ÉS UNA CONSULTORIA ÚNICA ESPECIALITZ...EspañaBarcelonaContrato
\n", "

3562 rows × 10 columns

\n", "
" ], "text/plain": [ " url fecha_publicacion \\\n", "1 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "2 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "3 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "4 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "6 https://europa.eu/eures/portal/jv-se/jv-detail... 10/10/2025 \n", "... ... ... \n", "7292 https://europa.eu/eures/portal/jv-se/jv-detail... 11/10/2025 \n", "7293 https://europa.eu/eures/portal/jv-se/jv-detail... 11/10/2025 \n", "7294 https://europa.eu/eures/portal/jv-se/jv-detail... 11/10/2025 \n", "7295 https://europa.eu/eures/portal/jv-se/jv-detail... 11/10/2025 \n", "7296 https://europa.eu/eures/portal/jv-se/jv-detail... 11/10/2025 \n", "\n", " fecha_limite titulo empresa \\\n", "1 10/10/2025 WORK/LOCATION NaN \n", "2 24/10/2025 WORK/LOCATION NaN \n", "3 13/10/2025 WORK/LOCATION NaN \n", "4 20/10/2025 WORK/LOCATION NaN \n", "6 20/10/2025 WORK/LOCATION NaN \n", "... ... ... ... \n", "7292 20/11/2025 WORK/LOCATION NaN \n", "7293 20/11/2025 WORK/LOCATION NaN \n", "7294 20/11/2025 WORK/LOCATION NaN \n", "7295 20/11/2025 WORK/LOCATION NaN \n", "7296 20/11/2025 WORK/LOCATION NaN \n", "\n", " ocupacion \\\n", "1 Empleado administrativo de archivos/empleada a... \n", "2 Operario especializado en engranajes de automo... \n", "3 Empleado del hogar/empleada del hogar \n", "4 Conductor de servicios de transporte de enferm... \n", "6 Conductor de servicios de transporte de enferm... \n", "... ... \n", "7292 Empleado del hogar/empleada del hogar \n", "7293 Mozo de almacén/moza de almacén \n", "7294 Inspector de carga y flete/inspectora de carga... \n", "7295 Profesor de autoescuela/profesora de autoescuela \n", "7296 Mayordomo del servicio doméstico \n", "\n", " descripcion pais region \\\n", "1 ES BUSCA UNA PERSONA AMB ESTUDIS I EXPERIèNCIA... España Tarragona \n", "2 CERQUEM PROFESSIONALS AMB EXPERIèNCIA EN MUNTA... España Girona \n", "3 IMPORTANTE EMPRESA UBICADA EN MERCABARNA PRECI... España Barcelona \n", "4 REQUISITS: ? TITULACIÓ D? ESPECIALISTA EN FARM... España Barcelona \n", "6 T?AGRADARIA TREBALLAR A LA FUNDACIÓ LAFACT ?LA... España Barcelona \n", "... ... ... ... \n", "7292 CONTRACTE DE SUBSTITUCIÓ PER MATERNITAT PER UN... España Tarragona \n", "7293 EMPRESA DE SERVICIOS AUXILIARES NECESITA PERSO... España Barcelona \n", "7294 ACTUALMENTE, DESDE LA DELEGACIÓN DE TARRAGONA ... España Barcelona \n", "7295 NDICE CONSULTORÍA Y FORMACIÓN, SOMOS UNA CONSU... España Barcelona \n", "7296 HELPOINT -ÉS UNA CONSULTORIA ÚNICA ESPECIALITZ... España Barcelona \n", "\n", " tipo_contrato \n", "1 Contrato \n", "2 Contrato \n", "3 Contrato \n", "4 Determinado \n", "6 Contrato \n", "... ... \n", "7292 Determinado \n", "7293 Contrato \n", "7294 Determinado \n", "7295 Autónomo \n", "7296 Contrato \n", "\n", "[3562 rows x 10 columns]" ] }, "execution_count": 37, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean[clean[\"titulo\"] == \"WORK/LOCATION\"]" ] }, { "cell_type": "code", "execution_count": 38, "id": "edcc514b", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "ocupacion\n", "Empleado del hogar/empleada del hogar 306\n", "Mozo de almacén/moza de almacén 251\n", "Barrendero/barrendera 248\n", "Empleado de oficina/empleada de oficina 214\n", "Auxiliar de enfermería 190\n", " ... \n", "Técnico agrícola/técnica agrícola 1\n", "técnico en geología/técnica en geología 1\n", "Agente de conservación forestal 1\n", "supervisor de destilería/supervisora de destilería 1\n", "ingeniero técnico agrícola/ingeniera técnica agrícola 1\n", "Name: count, Length: 463, dtype: int64" ] }, "execution_count": 38, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean[\"ocupacion\"].value_counts()" ] }, { "cell_type": "markdown", "id": "253da616", "metadata": {}, "source": [ "Pese a que no todos las ofertas tienen título, si tienen ocupación, por lo que se puede usar para clasificar aparte del título.\n", "\n", "\n", "Aun así, lo guardamos en 2 csv:\n", "- `ofertas.csv`: Todas las 7299 ofertas, 3562 sin título\n", "- `ofertasDescriptive.csv`: Solo las 3737 ofertas con nombre descriptivo" ] }, { "cell_type": "code", "execution_count": 39, "id": "c89aca32", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "url 0.000000\n", "fecha_publicacion 0.000000\n", "fecha_limite 0.000000\n", "titulo 0.000000\n", "empresa 99.205371\n", "ocupacion 10.056172\n", "descripcion 0.000000\n", "pais 0.000000\n", "region 1.561858\n", "tipo_contrato 0.027401\n", "dtype: float64" ] }, "execution_count": 39, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean.isna().sum() / 7299 *100 " ] }, { "cell_type": "markdown", "id": "56fbbeb8", "metadata": {}, "source": [ "## Anonimización de la base de datos" ] }, { "cell_type": "markdown", "id": "8d8ba573", "metadata": {}, "source": [ "Para cumplir con los principios FAIR es necesario anonimizar la base de datos, que en nuestro caso corresponde con eliminar los correos electrónicos y números de teléfono presentes en los datos." ] }, { "cell_type": "code", "execution_count": 14, "id": "5d113a02", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "titulo\n", "WORK/LOCATION 3562\n", "PERSONAL DE LIMPIEZA O LIMPIADORES EN GENERAL 110\n", "CONDUCTORES DE CAMIÓN, EN GENERAL 82\n", "COCINEROS, EN GENERAL 68\n", "ENFERMEROS DE CUIDADOS GENERALES 62\n", " ... \n", "CAMARERO/A (REF.5904) 1\n", "MOZO ALMACEN//REPARTIDOR 1\n", "MONTADORES DE GRANDES ESTRUCTURAS METÁLICAS, EN GENERAL 1\n", "AUXILIARES DE ENFERMERIA/GERIATRIA 1\n", "AUXILIAR DE AYUDA A DOMICILIO - PILOÑA 1\n", "Name: count, Length: 1923, dtype: int64" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "clean = pd.read_csv(\"ofertas.csv\")\n", "clean[\"titulo\"].value_counts()" ] }, { "cell_type": "code", "execution_count": 17, "id": "4f7a1ed5", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
indexcolumntypematch
013descripcionemailECYLDOCTORFLEMING.OFERTAS@JCYL.ES
116descripcionemailECYLDOCTORFLEMING.OFERTAS@JCYL.ES
219descripcionemaillaboral@grupoperezespinosa.com
320descripcionemailinaem.oebinefar@aragon.es
450descripcionemailinaem.oebinefar@aragon.es
...............
29896845descripcionphone_spain976216157
29906975descripcionphone_spain987249530
29917008descripcionphone_spain987249530
29927116descripcionphone_spain976216157
29937214descripcionphone_spain976216157
\n", "

2994 rows × 4 columns

\n", "
" ], "text/plain": [ " index column type match\n", "0 13 descripcion email ECYLDOCTORFLEMING.OFERTAS@JCYL.ES\n", "1 16 descripcion email ECYLDOCTORFLEMING.OFERTAS@JCYL.ES\n", "2 19 descripcion email laboral@grupoperezespinosa.com\n", "3 20 descripcion email inaem.oebinefar@aragon.es\n", "4 50 descripcion email inaem.oebinefar@aragon.es\n", "... ... ... ... ...\n", "2989 6845 descripcion phone_spain 976216157\n", "2990 6975 descripcion phone_spain 987249530\n", "2991 7008 descripcion phone_spain 987249530\n", "2992 7116 descripcion phone_spain 976216157\n", "2993 7214 descripcion phone_spain 976216157\n", "\n", "[2994 rows x 4 columns]" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# expresiones regulares\n", "email_regex = re.compile(\n", " r\"\"\"[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@\n", " [a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)+\"\"\",\n", " flags=re.VERBOSE | re.IGNORECASE\n", ")\n", "\n", "phone_regex_spain = re.compile(\n", " r\"(?:\\+34\\s?)?(?:6|7|8|9)\\d{8}\\b\" \n", ")\n", "\n", "# buscar coincidencias en el DataFrame\n", "def find_pii(df: pd.DataFrame, target_col: str = \"descripcion\"):\n", " \"\"\"\n", " Busca correos y teléfonos del DataFrame.\n", " \"\"\"\n", " hits = []\n", " ser = df[target_col].astype(str).fillna(\"\")\n", "\n", " # emails\n", " mask_email = ser.str.contains(email_regex, regex=True, na=False)\n", " for idx in df.index[mask_email]:\n", " matches = re.findall(email_regex, df.at[idx, target_col])\n", " for match in matches:\n", " hits.append((idx, target_col, \"email\", match))\n", "\n", " # teléfonos\n", " mask_phone_spain = ser.str.contains(phone_regex_spain, regex=True, na=False)\n", " for idx in df.index[mask_phone_spain]:\n", " matches = re.findall(phone_regex_spain, df.at[idx, target_col])\n", " for match in matches:\n", " hits.append((idx, target_col, \"phone_spain\", match))\n", "\n", " # devolver resultados como DataFrame\n", " result = pd.DataFrame(hits, columns=[\"index\", \"column\", \"type\", \"match\"])\n", " return result\n", "\n", "find_pii(clean)" ] }, { "cell_type": "code", "execution_count": 18, "id": "89fc7b6e", "metadata": {}, "outputs": [], "source": [ "# función para anonimizar el DataFrame\n", "def anonymize_df(df: pd.DataFrame, target_col: str = \"descripcion\", replace_email: str = \"[EMAIL]\", replace_phone: str = \"[PHONE]\"):\n", " \"\"\"\n", " Anonimiza la columna indicada reemplazando correos y teléfonos por etiquetas.\n", " \"\"\"\n", " df2 = df.copy()\n", "\n", " if pd.api.types.is_string_dtype(df2[target_col]) or pd.api.types.is_object_dtype(df2[target_col]):\n", " df2[target_col] = df2[target_col].astype(str)\n", " # correos\n", " df2[target_col] = df2[target_col].str.replace(email_regex, replace_email, regex=True)\n", " # teléfonos\n", " df2[target_col] = df2[target_col].str.replace(phone_regex_spain, replace_phone, regex=True)\n", " return df2\n", "\n", "\n", "anonim=anonymize_df(clean)" ] }, { "cell_type": "code", "execution_count": 20, "id": "2df15258", "metadata": {}, "outputs": [], "source": [ "anonim.to_csv(\"ofertasAnonimizado.csv\",index=False)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.13.2" } }, "nbformat": 4, "nbformat_minor": 5 }