text_html_output_1.png
import pandas as pd

import seaborn as sns

titanic = sns.load_dataset('titanic')

titanic.isnull().sum()

titanic.shape[0]

titanic.isnull().sum() / titanic.shape[0]

titanic.isnull().sum()

titanic.drop('deck', axis=1, inplace=True)

titanic.isnull().sum()

titanic.isnull().sum()

pd.get_dummies(titanic['who'])

pd.get_dummies(titanic['who'], drop_first=True)

pd.get_dummies(titanic['class'], drop_first=True)

pd.get_dummies(titanic['embarked'], drop_first=True)