Hi! I need help writing a code for gender wage gap in python. I…
Question Answered step-by-step Hi! I need help writing a code for gender wage gap in python. I… Hi! I need help writing a code for gender wage gap in python. I wanted to answer these questions with my graphs and math from the code. The data I’m using is attached below but if you have any data that is better it would be really helpful. The code I have for now and the questions are copied below. Also I’m currently using jupyter notebook for coding if it helps.Graph the wage comparisons for male and females in bar graphs for the different countries in the data.List countries best to worst and include each bar being able to list money in dollars and the country’s currency when clicked.Graph the female vs male salaries in all the careers together for a wide look.Take the careers separately and graph each of the careers to see which results come out for each career and which gender is more successful in terms of wage.Graph the different careers in groups to figure out which group of careers have a bigger salary in terms like engineering/tech, management, business owners, etc.Look at the correlation between the graphs for the salaries for different careers.CODEimport pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport seaborn as snsdata = pd.read_csv(‘gap.csv’,sep=’;’)datadata.describe()data.info()data.location.value_counts()for column in data.columns: if column!=’location’: print(column, data[column].unique())data.groupby(‘subject’).size().plot(kind=’pie’, autopct=’%.2f’,label=’Self employed vs employee’)sns.histplot(data.time)def value_first(x): return int(x.split(‘.’)[0])data[‘values_first’] = data[‘value’].apply(value_first)data[‘values_first’]data[(data.time==2005)&(data.subject==’EMPLOYEE’)].sort_values(‘values_first’) LINKS TO THE DATA (https://www.kaggle.com/datasets/mpwolke/cusersmarildownloadsgapcsv) (2019_Data_Professional_Salary_Survey_Responses.xlsx (live.com))Salary Prediction Classification | KaggleB24122: DETAILED OCCUPATION BY… – Census Bureau TableEarnings (CPS) (bls.gov) Computer Science Engineering & Technology Python Programming COMPUTER S 103383 Share QuestionEmailCopy link Comments (0)


