# Question 52 now to see how much these numbers have

• Homework Help
• 37
• 100% (1) 1 out of 1 people found this document helpful

This preview shows page 27 - 37 out of 37 pages.

Question 5.2 Now, to see how much these numbers have changed, assign top_1970_with_2009 to a table with the rows in the same order, but include a third column for 2009 as well. The differences between countries are much smaller in 2009.
1/29/2019 lab01 28/37 In [135]: In [136]: A bar chart for this three-column table will compare 1970 to 2009 for each country. Everywhere in the world, the average number of years that women attend school has increased, in some cases dramatically! Out[135]: Row Labels 1970 2009 United States 11 13.7 Czech Rep. 8.8 13.3 Canada 8.7 14.2 Australia 8.4 11.5 United Kingdom 8.3 13 Japan 8.2 12.2 Denmark 7.9 12.8 Switzerland 7.4 12.6 Georgia 7.4 12.5 Poland 7.3 12.4 ... (165 rows omitted) Out[136]: All tests passed! Full grade. top_1970_with_2009 = school.sort( "1970" , descending = True ).select( "Row Labels" , "1970" , "2009" ) top_1970_with_2009 check ( 'tests/q52.py' )
1/29/2019 lab01 29/37 In [137]: top_1970_with_2009.barh ( 'Row Labels' )
1/29/2019 lab01 30/37
1/29/2019 lab01 31/37
1/29/2019 lab01 32/37
1/29/2019 lab01 33/37
1/29/2019 lab01 34/37