Question 52 now to see how much these numbers have

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
1/29/2019 lab01 35/37 The Gapminder data browser () includes many other tables that you can explore as well. For more information on how to load a table from the web, try the course discussion forum. 6. Completion When you're done with your assignment, hit the button on the top toolbar that says "Submit". You should receive confirmation that your submission was received and we'll start grading it. When it's done running, you should be able to see your score in the gradebook. Congratulations, you're done with lab 1! Be sure to run all the tests and verify that they all pass (the next cell has a shortcut for that), Save and Checkpoint from the File menu, Hit the Submit button Your submission will be saved and grade will be posted when it's finished running.
1/29/2019 lab01 36/37 In [146]: In [ ]: 2 3 The biggest distance from the average height among these two people is 0.478 meters.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture