Mini Project: Data Wrangling API - MMBazel/Springboard-DataScienceTrack-Student GitHub Wiki
First, import the relevant modules
- Note: Assuming JSON is part of standard library: https://docs.python.org/3/library/json.html
- Note: statistics is part of python 3.4: https://stackoverflow.com/questions/7716331/calculating-arithmetic-mean-one-type-of-average-in-python
json - standard collections
- https://code.tutsplus.com/tutorials/how-to-work-with-json-data-using-python--cms-25758
- https://stackoverflow.com/questions/6578986/how-to-convert-json-data-into-a-python-object
3. Calculate what the highest and lowest opening prices were for the stock in this period.
- https://stackoverflow.com/questions/2241891/how-to-initialize-a-dict-with-keys-from-a-list-and-empty-value-in-python
- https://stackoverflow.com/questions/2295461/list-minimum-in-python-with-none
Get max of values even if there is a None
Try/Except:
- https://stackoverflow.com/questions/12186388/get-value-at-list-array-index-or-none-if-out-of-range-in-python/34940224
- https://stackoverflow.com/questions/6380290/python-if-error-raised-i-want-to-stay-in-script
Useful Other people:
Statistics module in python 3.4:
- https://stackoverflow.com/questions/7716331/calculating-arithmetic-mean-one-type-of-average-in-python
- https://docs.python.org/3.4/library/statistics.html#statistics.mean