text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

train_full_set = pd.read_csv('../input/train.csv')

full_set_initial = pd.get_dummies(data=train_full_set, columns=['Embarked', 'Sex', 'Survived'], drop_first=True)
full_set_initial = full_set_initial.drop(['PassengerId', 'Name', 'Ticket', 'Cabin'], axis=1)
corr = full_set_initial.corr()
plt.colorbar()
plt.xticks(range(len(corr)), corr.columns, rotation='vertical')
plt.yticks(range(len(corr)), corr.columns)

test_full_set = pd.read_csv('../input/test.csv')

full_set = pd.concat([train_full_set, test_full_set])
full_set = full_set.reset_index(drop=True)

full_set.drop(['Ticket', 'Cabin', 'PassengerId'], axis=1, inplace=True)

plt.figure(figsize=(15, 8))
sns.set_style('whitegrid')
ax = sns.countplot(x='Title', data=full_set)
ax.set_ylabel('COUNT', size=20, color='black', alpha=0.5)
ax.set_xlabel('TITLE', size=20, color='black', alpha=0.5)
ax.set_title('COUNT OF TITLES IN EACH CATEGORY BEFORE COMBINATION', size=20, color='black', alpha=0.5)