alexaxbreadbytes commited on
Commit
0dfbf04
·
1 Parent(s): dc5252a

replace dropna

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -740,7 +740,7 @@ def runapp() -> None:
740
  #cum_sdp = sd_df.loc[sd_df.drop('Drawdown %', axis=1).dropna().index[-1],'Cumulative P/L (+)'] + principal_balance
741
  #cum_sdm = sd_df.loc[sd_df.drop('Drawdown %', axis=1).dropna().index[-1],'Cumulative P/L (-)'] + principal_balance
742
  else:
743
- cum_pl = df.loc[df.index[-1],'Cumulative P/L'] + principal_balance
744
  #cum_sdp = sd_df.loc[sd_df.dropna().index[-1],'Cumulative P/L (+)'] + principal_balance
745
  #cum_sdm = sd_df.loc[sd_df.dropna().index[-1],'Cumulative P/L (-)'] + principal_balance
746
  #sd = 2*.00026
 
740
  #cum_sdp = sd_df.loc[sd_df.drop('Drawdown %', axis=1).dropna().index[-1],'Cumulative P/L (+)'] + principal_balance
741
  #cum_sdm = sd_df.loc[sd_df.drop('Drawdown %', axis=1).dropna().index[-1],'Cumulative P/L (-)'] + principal_balance
742
  else:
743
+ cum_pl = df.loc[df.dropna().index[-1],'Cumulative P/L'] + principal_balance
744
  #cum_sdp = sd_df.loc[sd_df.dropna().index[-1],'Cumulative P/L (+)'] + principal_balance
745
  #cum_sdm = sd_df.loc[sd_df.dropna().index[-1],'Cumulative P/L (-)'] + principal_balance
746
  #sd = 2*.00026