Module Import alias Import alias identifier Import alias identifier Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num attr AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad NameLoad Print BinOpAdd Str Call NameLoad NameLoad Print BinOpAdd Str Call NameLoad NameLoad Print BinOpAdd Str Call NameLoad NameLoad Print Assign NameStore CompareEq SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num Str Assign NameStore CompareNotEq SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num attr AttributeLoad NameLoad attr Print BinOpAdd Str Call NameLoad Call NameLoad NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Str Str For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign SubscriptStore NameLoad Index TupleLoad CompareGtE Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num attr AttributeLoad NameLoad attr NameLoad Num BinOpSub NameLoad Num Assign NameStore Num Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num NameLoad NameLoad For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad BinOpBitAnd BinOpBitAnd BinOpBitAnd CompareEq SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num Str CompareEq Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num attr AttributeLoad NameLoad attr BinOpAdd NameLoad Num CompareGtE Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Index Num attr AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad CompareLt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Index Num attr AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num NameLoad Num Assign NameStore SubscriptLoad NameLoad Index TupleLoad BinOpBitAnd BinOpBitAnd BinOpBitAnd CompareNotEq SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num Str CompareEq Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Index Num attr AttributeLoad NameLoad attr BinOpAdd NameLoad Num CompareGtE Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Index Num attr AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad CompareLt Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Index Num attr AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num NameLoad Num Assign SubscriptStore NameLoad Index TupleLoad Num NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareNotEq NameLoad NameLoad Num Assign SubscriptStore NameLoad Index CompareLt NameLoad Num Num Assign SubscriptStore NameLoad Index CompareGtE NameLoad Num Num Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body For NameStore Call NameLoad NameLoad body TryExcept body Assign SubscriptStore NameLoad Index Num Call NameLoad Call NameLoad Num handlers ExceptHandler body Assign NameStore BinOpSub Num Call NameLoad SubscriptLoad NameLoad Index Num Break If CompareGt SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore BinOpSub NameLoad Num Break If BoolOpAnd CompareGtE SubscriptLoad NameLoad Index Num BinOpMult NameLoad NameLoad CompareLt SubscriptLoad NameLoad Index Num BinOpMult BinOpAdd NameLoad Num NameLoad body Assign NameStore NameLoad Break If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A os N/A csv csv N/A numpy np N/A matplotlib.pyplot plt N/A path N/A N/A os getcwd N/A csv_file_object N/A N/A csv reader N/A open N/A path /train.csv rb N/A header N/A N/A csv_file_object next N/A data N/A N/A row csv_file_object N/A N/A N/A N/A data append row N/A data N/A N/A np array data N/A number_passengers N/A N/A np size N/A N/A N/A data N/A N/A 0 None N/A 0 astype N/A np float N/A number_survived N/A N/A np sum N/A N/A N/A data N/A N/A 0 None N/A 0 astype N/A np float N/A prop_surv N/A number_survived number_passengers N/A N/A # passengers:  N/A str number_passengers N/A N/A # survived:  N/A str number_survived N/A N/A # % survive:  N/A str prop_surv N/A N/A women_only_stats N/A N/A data N/A N/A 0 None N/A 3 female N/A men_only_stats N/A N/A data N/A N/A 0 None N/A 3 female N/A women_onboard N/A N/A N/A data N/A N/A women_only_stats 0 astype N/A np float N/A men_onboard N/A N/A N/A data N/A N/A men_only_stats 0 astype N/A np float N/A N/A wos:  N/A str N/A len women_only_stats N/A proportion_women_survived N/A N/A N/A np sum women_onboard N/A N/A np size women_onboard N/A proportion_men_survived N/A N/A N/A np sum men_onboard N/A N/A np size men_onboard N/A N/A proportion women survived: %s proportion_women_survived N/A N/A proportion men survived: %s proportion_men_survived N/A test_file_object N/A N/A csv reader N/A open N/A path /test.csv rb N/A header N/A N/A test_file_object next N/A open_file_object N/A N/A csv writer N/A open N/A path /genderbasedmodelpy.csv wb N/A row test_file_object N/A N/A N/A N/A row N/A 2 female N/A N/A N/A N/A row insert 0 1 N/A N/A N/A open_file_object writerow row N/A N/A N/A N/A row insert 0 0 N/A N/A N/A open_file_object writerow row N/A fare_ceiling 40 N/A N/A data N/A N/A N/A N/A N/A N/A data N/A N/A 0 None N/A 8 astype N/A np float fare_ceiling 8 N/A fare_ceiling 1.0 N/A fare_bracket_size 10 N/A num_price_brackets N/A fare_ceiling fare_bracket_size N/A num_classes 3 N/A survival_table N/A N/A np zeros N/A 2 num_classes num_price_brackets N/A i N/A xrange num_classes N/A N/A j N/A xrange num_price_brackets N/A N/A women_only_stats N/A data N/A N/A N/A N/A N/A N/A N/A data N/A N/A 0 None N/A 3 female N/A N/A N/A N/A data N/A N/A 0 None N/A 1 astype N/A np float N/A i 1 N/A N/A N/A N/A data N/A N/A 0 N/A 8 astype N/A np float N/A j fare_bracket_size N/A N/A N/A N/A data N/A N/A 0 N/A 8 astype N/A np float N/A N/A j 1 fare_bracket_size 0 N/A men_only_stats N/A data N/A N/A N/A N/A N/A N/A N/A data N/A N/A 0 None N/A 3 female N/A N/A N/A N/A data N/A N/A 0 None N/A 1 astype N/A np float N/A i 1 N/A N/A N/A N/A data N/A N/A 0 N/A 8 astype N/A np float N/A j fare_bracket_size N/A N/A N/A N/A data N/A N/A 0 N/A 8 astype N/A np float N/A N/A j 1 fare_bracket_size 0 N/A N/A survival_table N/A N/A 0 i j N/A N/A np mean N/A N/A women_only_stats astype N/A np float N/A N/A survival_table N/A N/A 1 i j N/A N/A np mean N/A N/A men_only_stats astype N/A np float N/A N/A survival_table N/A N/A survival_table survival_table 0 N/A N/A survival_table N/A N/A survival_table 0.5 0 N/A N/A survival_table N/A N/A survival_table 0.5 1 N/A survival_table N/A test_file_object N/A N/A csv reader N/A open N/A path /test.csv rb N/A new_open_file_object N/A N/A csv writer N/A open N/A path /genderclasspricebasedmodelpy.csv wb N/A header N/A N/A test_file_object next N/A row test_file_object N/A N/A j N/A xrange num_price_brackets N/A N/A N/A N/A N/A row N/A 7 N/A float N/A row 7 N/A N/A N/A N/A bin_fare N/A 3 N/A float N/A row N/A 0 N/A N/A N/A N/A row N/A 7 fare_ceiling N/A N/A bin_fare N/A num_price_brackets 1 N/A N/A N/A N/A N/A row N/A 7 N/A j fare_bracket_size N/A N/A row N/A 7 N/A N/A j 1 fare_bracket_size N/A N/A bin_fare j N/A N/A N/A N/A row N/A 2 female N/A N/A N/A N/A row insert 0 N/A int N/A survival_table N/A N/A 0 N/A N/A float N/A row N/A 0 1 bin_fare N/A N/A N/A new_open_file_object writerow row N/A N/A N/A N/A row insert 0 N/A int N/A survival_table N/A N/A 1 N/A N/A float N/A row N/A 0 1 bin_fare N/A N/A N/A new_open_file_object writerow row