# Write a Pandas program to create a Pivot table and find the probability of survival by class, gender, solo boarding and port of embarkation.  
 import pandas as pd
import numpy as np
df = pd.read_csv('titanic.csv')
result = df.pivot_table('survived', ['sex' , 'alone' ], [ 'embark_town', 'class' ])
print(result)

