Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kyle-mccarthy/syrian-data-io


https://github.com/kyle-mccarthy/syrian-data-io

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# cs4001-hw1-syrian

- Explain the `with open(...) as collection:` construct in detail, then provide an example of code that uses it for the Syrian data CSV file.
- Explain the difference between a `list` and `dict` in python. Provide code samples of each, where you fill them with at least three items then iterate through and print items out.
- Note the various styles of importing libraries and namespaces into Python. Please list an example of each style that you find; along with an explanation of how these vary in terms of the importation of libraries.
- Explain an algorithm/steps to parse the Syrian CSV file and produce a simple HTML file that includes a table of the data. The table should have a header row using elements then the data rows should have data in elements. Implement this algorithm within the notebook and save the output as Data/SyrianIDP.html
- Explain an algorithm/steps to parse the file from step 4, Data/SyrianIDP.html, and convert it into a JSON file. Implement this algorithm within the notebook and save the output as Data/SyrianIDP_new.json

## running the program
1. open terminal
2. go into the source directory - 'cd src/'
3. run the main.py file - 'python main.py'

If the program does not run, ensure that the dependencies are installed on the virtualenv.