survival_table = PD. Dataframe (columns=[' Sex ', ' pclass ', ' pricedist ', ' survived ']) survival_table = AddRow (survival_table, [Dict ( Pclass=1, sex= "female", Pricedist = 0, survived = 0)]) survival_table = AddRow (survival_table, [Dict (Pclass=1, sex= "male", Pricedist = 0, survived = 0)] survival_table = AddRow (survival_table, [Dict (Pclass=1, sex= "female", pricedist = 1, Survi ved = 0)] survival_table = AddRow (survival_table, [Dict (Pclass=1, sex= "male", Pricedist = 1, survived = 0)]) survival_tab Le = AddRow (survival_table, [Dict (Pclass=1, sex= "female", Pricedist = 2, survived = 1)]) survival_table = AddRow (Survival_ Table, [Dict (Pclass=1, sex= "male", Pricedist = 2, survived = 0)]) survival_table = AddRow (survival_table, [Dict (Pclass=1, sex= "female", Pricedist = 3, survived = 1)]) survival_table = AddRow (survival_table, [Dict (Pclass=1, sex= "male", pricedist = 3, survived = 0)] survival_table = AddRow (survival_table, [Dict (pclass=2, sex= "female", Pricedist = 0, survived = 0)]) survival_table = AddRow (survival_table, [Dict (pclass=2, sex= "male", Pricedist = 0, survived = 0)]) survival_table = AddRow (su Rvival_table, [Dict (pclass=2, sex= "female", Pricedist = 1, survived = 1)]) survival_table = AddRow (survival_table, [Dict (P class=2, sex= "male", Pricedist = 1, survived = 0)]) survival_table = AddRow (survival_table, [Dict (pclass=2, sex= "female", Pricedist = 2, survived = 1)] survival_table = AddRow (survival_table, [Dict (pclass=2, sex= "male", Pricedist = 2, survived = 0)] survival_table = AddRow (survival_table, [Dict (pclass=2, sex= "female", Pricedist = 3, survived = 1)]) survival_tabl E = AddRow (survival_table, [Dict (pclass=2, sex= "male", Pricedist = 3, survived = 0)]) survival_table = AddRow (Survi Val_table, [Dict (Pclass=3, sex= "female", Pricedist = 0, survived = 1)]) survival_table = AddRow (survival_table, [Dict (PCLA ss=3, sex= "male", Pricedist = 0, survived = 0)]) survival_table = AddRow (survival_table, [Dict (Pclass=3, sex= "female", Pri Cedist = 1, survived = 1)] survival_table = AddRow (survival_table, [Dict (pclass=3, sex= "male", Pricedist = 1, survived = 0)]) survival_table = AD Drow (survival_table, [Dict (Pclass=3, sex= "female", Pricedist = 2, survived = 0)]) survival_table = AddRow (survival_table,
[Dict (pclass=3, sex= "male", Pricedist = 2, survived = 0)]) survival_table = AddRow (survival_table, [Dict (Pclass=3, sex= "female", Pricedist = 3, survived = 0)]) survival_table = addr
ow (Survival_table, [Dict (pclass=3, sex= "male", Pricedist = 3, survived = 0)]) >>> survival_table Pclass Pricedist Sex survived 0 1 0 female 0 1 1 0 male 0 2 1 1 Female 0 3 1 1 male 0 4 1 2 female 1 5 1 2 Male 0 6 1 3 female 1 7 1 3 Male 0 8 2 0 Female 0 9 2 0 male 0 10 2 |