text_plain_output_1.png
def cabin_separation(df):
    """
    Split the Cabin name into Deck, Number and Side
    """
    df['CabinDeck'] = df['Cabin'].str.split('/', expand=True)[0]
    df['CabinNum'] = df['Cabin'].str.split('/', expand=True)[1]
    df['CabinSide'] = df['Cabin'].str.split('/', expand=True)[2]
    df.drop(columns=['Cabin'], inplace=True)
    return df