This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Modified code from: | |
| # - http://matplotlib.org/examples/user_interfaces/embedding_in_tk.html | |
| # - https://gist.github.com/chappers/bd910bfb0ed73c509802 | |
| import matplotlib | |
| matplotlib.use('TkAgg') | |
| import numpy as np | |
| from scipy.stats import pearsonr, spearmanr, kendalltau |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # list of fund codes. user to key in whichever fund codes they want to look up. | |
| fund_codes = [ | |
| ("FSGBRE", "First State Glb Resources"), | |
| ("370248", "United Asian Bond Fund Class SGD"), | |
| ("UBGEMS", "United Emerging Markets Bond Fund"), | |
| ("PHP009", "Phillip Spore Real Estate Income CL A SGD"), | |
| ("PPMIPM", "Eastspring Investments MIP M") | |
| ] | |
| ################################# |