Code Monkey home page Code Monkey logo

eda-on-data-science-salary-with-python's Introduction

EDA-on-DATA-SCIENCE-SALARY-with-python

You can access the files of this project, which analyzes people working in the field of data science according to countries and working wages.

First, we will download the libraries we will use.

For the dataset link of my work: https://www.kaggle.com/datasets/ruchi798/data-science-job-salaries

!pip install country_converter

import

import country_converter as coco
import pandas as pd
import numpy as np
import seaborn as sns
import plotly.express as px
import matplotlib.pyplot as plt
import pycountry
from wordcloud import WordCloud
import warnings;
warnings.filterwarnings('ignore')

Reading the DataSet.

df.head()

image

!pip install pycountry

Converting country codes to country names for employee_residence and company_location

resi_country_list = []
comp_country_list = []
for country_code in df.employee_residence:
    resi_country_list.append(pycountry.countries.get(alpha_2=country_code).name)

for country_code in df.company_location:
    comp_country_list.append(pycountry.countries.get(alpha_2=country_code).name)

df['employee_residence'] = resi_country_list
df['company_location'] = comp_country_list

Replacing some of the values to understand the graphs clearly

df.remote_ratio.replace([100,50,0], ['Remote', 'Hybrid' ,'On-site'],inplace = True)
df.experience_level.replace(['EN','MI','SE', 'EX'], ['Entry', 'Mid', 'Senior', 'Executive'], inplace = True)

ANALYZE OF JOB TITLE

jobs = df.groupby('job_title').size().reset_index().sort_values(by=0,ascending = False)
jobs.head()

image

figure_size()
sns.set_style("darkgrid")
sns.barplot(x='job_title',y=0,data = jobs[:10],palette = 'magma')
plt.title('Top Jobs Titles')
plt.xlabel('Job Title')
plt.ylabel('Counts')
plt.xticks(rotation=45)
plt.show()

image

ax2= px.treemap(df,path=['job_title'],title="Top Job Titles")
ax2.show()

image

px.histogram(df, x=df.job_title.sort_values(), color = 'experience_level', height = 800, barmode = 'group',
             color_discrete_sequence=px.colors.qualitative.Dark24, template = "plotly_white",
             text_auto  = True, title = 'Count of number of people with all experience levels in each job')

image

MULTIVARIENT ANALYSIS

figure_size()
px.scatter(df, x=df.employee_residence.sort_values(), y = df.company_location.sort_values(), color = 'remote_ratio',
           labels ={"x":'Employee Residence', "y":'Company Location', "remote_ratio":'Work Type'},
           color_discrete_sequence=px.colors.qualitative.Light24, template = 'plotly_white',
           title = 'Company Location VS Employee Residence for type of work(Remote, Hybrid or On-site)')

See you in the next project. I wish you healthy days.

eda-on-data-science-salary-with-python's People

Contributors

fatihilhan24 avatar fatihilhan42 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.