text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/hr-analytics-job-change-of-data-scientists/aug_train.csv')

df = df.drop('enrollee_id', axis=1)

fig= plt.figure(figsize=(25, 16))
i = 1

for val in df.columns:
    if val not in ["city", "city_development_index", "training_hours", "target"]:
        fig.add_subplot(4, 3, i, frameon=True, )
        plt.xticks(rotation=45)
        ax = sns.countplot(x=val, data=df,fill=True, edgecolor = sns.color_palette("pastel"))
        i+=1

plt.subplots_adjust(top = 2, bottom=0.2, hspace=0.3)

le = {}
df = df.fillna(0)
for val in df.columns:
    if val not in ['city_development_index', 'training_hours', 'target']:
        le[val] = label_encoding(val)

fig = plt.figure(figsize=(10, 10))
fig.add_subplot()
ax = sns.heatmap(df.corr(), linewidths=0.5, square=True, annot=True)
plt.show()