Skip to content

Instantly share code, notes, and snippets.

@techykajal
Created September 16, 2020 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techykajal/e7220f7c4089a98f17e301c12c4baadb to your computer and use it in GitHub Desktop.
Save techykajal/e7220f7c4089a98f17e301c12c4baadb to your computer and use it in GitHub Desktop.
import pandas as pd
import matplotlib.pyplot as plt
Df = pd.read_csv("/content/Market.csv", encoding = 'latin')
Df.head()
#Location wise Data Science Jobs
Df.Location.apply(pd.Series).stack().str.strip().value_counts()[:10].plot.pie(figsize=(12,10),startangle=50,autopct='%1.1f%%',fontsize=15)
plt.title("Location Wise Data scientist Jobs",fontsize=30)
centre_circle = plt.Circle((0,0),0.72,color='gray', fc='white',linewidth=1.25)
fig = plt.gcf()
fig.gca().add_artist(centre_circle)
plt.axis('equal')
plt.show()
#Companies wise Job Openings
Df["Company"].value_counts()[:10].plot.pie(figsize=(12,10),explode=[0.03,0.04,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05],shadow=True, startangle=40,autopct='%1.1f%%',fontsize=20)
plt.title("Companies with more job postings",fontsize=35)
plt.show()
#Roles in field of Data Science
Df["Title"].value_counts()[:10].plot.bar(figsize=(8,5),fontsize=10,color="b")
plt.xticks(rotation=45,ha='right')
plt.title("Data Scientist Roles",fontsize=22)
plt.ylabel("No of Vacancies",fontsize=15,rotation=90)
plt.xlabel("Roles",fontsize=15)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment