non-null values non-null values dtypesfloat ( to see the top films among female viewerswe can sort by the column in descending orderin [ ]top_female_ratings mean_ratings sort_index(by=' 'ascending=falsein [ ]top_female_ratings[: out[ ]gender close shavea ( wrong trousersthe ( sunset blvd ( sunset boulevard( wallace gromitthe best of aardman animation ( schindler' list ( shawshank redemptionthe ( grand day outa ( to kill mockingbird ( creature comforts ( usual suspectsthe ( measuring rating disagreement suppose you wanted to find the movies that are most divisive between male and female viewers one way is to add column to mean_ratings containing the difference in meansthen sort by thatin [ ]mean_ratings['diff'mean_ratings[' 'mean_ratings[' 'sorting by 'diffgives us the movies with the greatest rating difference and which were preferred by womenin [ ]sorted_by_diff mean_ratings sort_index(by='diff'in [ ]sorted_by_diff[: out[ ]gender dirty dancing ( jumpinjack flash ( grease ( little women ( steel magnolias ( anastasia ( rocky horror picture showthe ( color purplethe ( age of innocencethe ( free willy ( french kiss ( little shop of horrorsthe ( guys and dolls ( mary poppins ( patch adams ( diff - - - - - - - - - - - - - - - introductory examples www it-ebooks info