Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyle-mccarthy/syrian-data-io
https://github.com/kyle-mccarthy/syrian-data-io
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyle-mccarthy/syrian-data-io
- Owner: kyle-mccarthy
- Created: 2016-02-01T00:20:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-09T02:07:09.000Z (almost 9 years ago)
- Last Synced: 2024-11-06T06:04:26.157Z (2 months ago)
- Language: HTML
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.