nesticot commited on
Commit
523fd98
·
1 Parent(s): 27ed81b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -105,8 +105,8 @@ position_dict = {'All':'','F':'Forwards','D':'Defense'}
105
  player_games_df = player_games_df.rename(columns={'Total Points_pp':'PP Points'})
106
 
107
  stat_input_list = ['TOI', 'Goals', 'Total Assists',
108
- 'First Assists', 'Total Points', 'PP Points','Shots', 'Hits',
109
- 'Shots Blocked']
110
 
111
 
112
  df_cum_stat_total = player_games_df.groupby(['player_id','Player','Position']).agg(
@@ -471,7 +471,7 @@ def server(input, output, session):
471
  fig.text(x=0.975,y=0.01,s="Data: Natural Stat Trick",color='black', fontsize=20, horizontalalignment='right',**cgfont)
472
  fig.text(x=.975,y=0.91,s='Date: '+input.date().strftime('%B %d, %Y'),color='black', fontsize=18, horizontalalignment='right',**cgfont)
473
 
474
- ax.legend(prop=font,bbox_to_anchor=(0.05, 0.95),loc='upper left',framealpha=1,frameon=True)
475
  plt.tight_layout()
476
  #fig.savefig('gif_race/'+stat+rookie+str(date_range_list[k].date())+'.png', facecolor=fig.get_facecolor(), edgecolor='none',bbox_inches='tight',dpi=100)
477
  #plt.close()
 
105
  player_games_df = player_games_df.rename(columns={'Total Points_pp':'PP Points'})
106
 
107
  stat_input_list = ['TOI', 'Goals', 'Total Assists',
108
+ 'First Assists', 'Second Assists', 'Total Points', 'PP Points','Shots','PIM', 'Hits',
109
+ 'Hits Taken', 'Shots Blocked']
110
 
111
 
112
  df_cum_stat_total = player_games_df.groupby(['player_id','Player','Position']).agg(
 
471
  fig.text(x=0.975,y=0.01,s="Data: Natural Stat Trick",color='black', fontsize=20, horizontalalignment='right',**cgfont)
472
  fig.text(x=.975,y=0.91,s='Date: '+input.date().strftime('%B %d, %Y'),color='black', fontsize=18, horizontalalignment='right',**cgfont)
473
 
474
+ ax.legend(prop=font,bbox_to_anchor=(0.01, 0.99),loc='upper left',framealpha=1,frameon=True)
475
  plt.tight_layout()
476
  #fig.savefig('gif_race/'+stat+rookie+str(date_range_list[k].date())+'.png', facecolor=fig.get_facecolor(), edgecolor='none',bbox_inches='tight',dpi=100)
477
  #plt.close()