text_html_output_1.png
import pandas as pd

df = pd.read_csv('../input/Pakistan Intellectual Capital - Computer Science - Ver 1.csv', encoding='ISO-8859-1')

df_new = df[df['Other Information'].isin(['On Study Leave', 'On study leave', 'PhD Study Leave', 'On Leave'])]
x = df_new['Teacher Name'].count()
y = df['Teacher Name'].count() - x

df_new = df[df['Year'].isin([2013, 2014, 2015, 2016, 2017])]
df_new = df_new[df_new['Terminal Degree'].isin(['PhD', 'Ph.D', 'Phd'])]
df_new['Year'].value_counts().plot(kind='bar')