Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
e2b52d0
1
Parent(s):
b7f4f75
Use just first position from eligible positions
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
@@ -10,7 +10,8 @@ DATA_URL = "../tests/mocks/2023_keepers.csv"
|
|
10 |
@st.cache_data
|
11 |
def load_data():
|
12 |
data = pd.read_csv(os.path.join(os.path.dirname(__file__), DATA_URL), index_col=0)
|
13 |
-
#
|
|
|
14 |
data.columns = data.columns.str.lower()
|
15 |
return data
|
16 |
|
|
|
10 |
@st.cache_data
|
11 |
def load_data():
|
12 |
data = pd.read_csv(os.path.join(os.path.dirname(__file__), DATA_URL), index_col=0)
|
13 |
+
# Hack to get position, replace with better position from yahoo api in future
|
14 |
+
data["position"] = data["eligible_positions"].apply(lambda x: eval(x)[0])
|
15 |
data.columns = data.columns.str.lower()
|
16 |
return data
|
17 |
|