git clone [email protected]:datamade/ihs-price-index.git
cd ihs-price-index
python -m SimpleHTTPServer
navigate to http://localhost:8000/
We used the following open source tools:
- Bootstrap - Responsive HTML, CSS and Javascript framework
- Leaflet - javascript library interactive maps
- HighCharts - javascript library online, interactive charts
The Price Index is updated twice a year with data from the IHS team. Data is shared in an excel spreadsheet with several tabs.
Steps to update:
- Open up the excel file and export two sheets: index by quarter and the summary table. Save these sheets as
csv
. - Ensure that the format of these sheets matches the existing files in the
/data
folder. There are often times slight differences in the column titles and additional rows and columns that need to be removed. - Once the files are cleaned up, move them into the
/data
folder. - Open up a terminal and cd into the
/data
folder. Activate your python3 virtual env. There are no requirements to install. - Run
python munge.py
. It will update thecook_puma_trend_by_quarter.csv
file. - Open up
index.html
,js/app.js
andjs/app_iframe.js
and replace any references to the previous update's files with the new ones. - The chart titles on
index.html
andjs/app_iframe.js
will also need to be updated.
You can view an example PR for one of these updates here: #4
- Derek Eder - developer, content
- Eric van Zanten - developer, GIS data
If something is not behaving intuitively, it is a bug, and should be reported. Report it here: https://github.com/datamade/ihs-price-index/issues
- Fork the project.
- Make your feature addition or bug fix.
- Commit, do not mess with rakefile, version, or history.
- Send a pull request. Bonus points for topic branches.
Copyright (c) 2021 DataMade. Released under the MIT License.