James McCool
commited on
Commit
·
8f50be4
1
Parent(s):
00737ec
Add print statements to display the first 10 rows of portfolio DataFrames for both Draftkings and Fanduel lineups during data load.
Browse files
app.py
CHANGED
|
@@ -565,6 +565,7 @@ if selected_tab == 'Data Load':
|
|
| 565 |
if site_var == 'Draftkings':
|
| 566 |
portfolio_file = init_DK_NFL_lineups(type_var, 'Main', 'proj', 50, dk_nfl_showdown_db_translation, 1000, [])
|
| 567 |
portfolio_df = pd.DataFrame(portfolio_file)
|
|
|
|
| 568 |
portfolio_file = portfolio_df.to_csv(index=False)
|
| 569 |
if 'portfolio' in st.session_state:
|
| 570 |
del st.session_state['portfolio']
|
|
@@ -573,6 +574,7 @@ if selected_tab == 'Data Load':
|
|
| 573 |
else:
|
| 574 |
portfolio_file = init_FD_NFL_lineups(type_var, 'Main', 'proj', 50, fd_nfl_showdown_db_translation, 1000, [])
|
| 575 |
portfolio_df = pd.DataFrame(portfolio_file)
|
|
|
|
| 576 |
portfolio_file = portfolio_df.to_csv(index=False)
|
| 577 |
if 'portfolio' in st.session_state:
|
| 578 |
del st.session_state['portfolio']
|
|
|
|
| 565 |
if site_var == 'Draftkings':
|
| 566 |
portfolio_file = init_DK_NFL_lineups(type_var, 'Main', 'proj', 50, dk_nfl_showdown_db_translation, 1000, [])
|
| 567 |
portfolio_df = pd.DataFrame(portfolio_file)
|
| 568 |
+
print(portfolio_df.head(10))
|
| 569 |
portfolio_file = portfolio_df.to_csv(index=False)
|
| 570 |
if 'portfolio' in st.session_state:
|
| 571 |
del st.session_state['portfolio']
|
|
|
|
| 574 |
else:
|
| 575 |
portfolio_file = init_FD_NFL_lineups(type_var, 'Main', 'proj', 50, fd_nfl_showdown_db_translation, 1000, [])
|
| 576 |
portfolio_df = pd.DataFrame(portfolio_file)
|
| 577 |
+
print(portfolio_df.head(10))
|
| 578 |
portfolio_file = portfolio_df.to_csv(index=False)
|
| 579 |
if 'portfolio' in st.session_state:
|
| 580 |
del st.session_state['portfolio']
|