Hidden Code Contact for template
-
Download mkt_caps.csv[1] which contains the data required for visualization to the same folder as treemap.py
-
Import the dependencies from requirements.txt[2]
-
Run treemap.py
The code will perform the following:
- display an interactive treemap
- save the treemap as a png file in the working folder
[1] File shared in UPWK with missing marketcaps added [2] kaleido package is used for downloading treemap as image