niharikabalachandra / Data-Wrangling-XML

Data Wrangling of XML file using Jupyter Notebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data-Wrangling-XML

Data Wrangling of XML file using Jupyter Notebook

XML example and exercise

  1. study examples of accessing nodes in XML tree structure
  2. work on exercise to be completed and submitted reference: https://docs.python.org/2.7/library/xml.etree.elementtree.html data source: http://www.dbis.informatik.uni-goettingen.de/Mondial

XML example

for details about tree traversal and iterators, see https://docs.python.org/2.7/library/xml.etree.elementtree.html

XML exercise

Using data in 'data/mondial_database.xml', the examples above, and refering to https://docs.python.org/2.7/library/xml.etree.elementtree.html, find

  1. 10 countries with the lowest infant mortality rates
  2. 10 cities with the largest population
  3. 10 ethnic groups with the largest overall populations (sum of best/latest estimates over all countries)
  4. name and country of a) longest river, b) largest lake and c) airport at highest elevation

About

Data Wrangling of XML file using Jupyter Notebook

License:MIT License


Languages

Language:Jupyter Notebook 100.0%