text_plain_output_1.png
import pandas as pd

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

all_data = pd.read_csv('/kaggle/input/data-science-salaries-2023/ds_salaries.csv')

all_data = all_data.drop('salary', axis=1)
all_data = all_data.drop('salary_currency', axis=1)
all_data = all_data.drop('employee_residence', axis=1)

all_data.nunique()

all_data = all_data.drop('salary_in_usd', axis=1)

sel_jobs = ['Data Engineer', 'Data Scientist', 'Data Analyst', 'Machine Learning Engineer', 'Analytics Engineer']
all_data['job_title'] = all_data['job_title'].apply(lambda x: x if x in sel_jobs else 'Otro')
all_data