Commit
·
d1be032
1
Parent(s):
4b8fd00
Update Climate_site/python_scripts/functions_companies.py
Browse files
Climate_site/python_scripts/functions_companies.py
CHANGED
|
@@ -9,12 +9,13 @@ import json
|
|
| 9 |
|
| 10 |
path = 'Climate_site/python_scripts/'
|
| 11 |
|
|
|
|
| 12 |
def load_dic():
|
| 13 |
f = open(path + "related_companies.json","r")
|
| 14 |
dic_companies = json.load(f)
|
| 15 |
return dic_companies
|
| 16 |
|
| 17 |
-
|
| 18 |
def load_data():
|
| 19 |
url = path + "preqin_companies_IEA.tsv"
|
| 20 |
table = pd.read_csv(url, delimiter = "\t" , index_col = 0)
|
|
|
|
| 9 |
|
| 10 |
path = 'Climate_site/python_scripts/'
|
| 11 |
|
| 12 |
+
@st.cache_data
|
| 13 |
def load_dic():
|
| 14 |
f = open(path + "related_companies.json","r")
|
| 15 |
dic_companies = json.load(f)
|
| 16 |
return dic_companies
|
| 17 |
|
| 18 |
+
@st.cache_data
|
| 19 |
def load_data():
|
| 20 |
url = path + "preqin_companies_IEA.tsv"
|
| 21 |
table = pd.read_csv(url, delimiter = "\t" , index_col = 0)
|