Spaces:
Build error
Build error
decimal fix
Browse files
app.py
CHANGED
|
@@ -593,11 +593,11 @@ def runapp() -> None:
|
|
| 593 |
grouped_df['Entry Date'] = pd.to_datetime(grouped_df['Entry Date'])
|
| 594 |
grouped_df['Exit Date'] = pd.to_datetime(grouped_df['Exit Date'])
|
| 595 |
if bot_selections == "Pure Bread":
|
| 596 |
-
st.dataframe(grouped_df.style.format({'Entry Date':'{:%m-%d-%Y %H:%M:%S}','Exit Date':'{:%m-%d-%Y %H:%M:%S}','
|
| 597 |
.applymap(my_style,subset=['Net P/L'])\
|
| 598 |
.applymap(my_style,subset=['P/L %']), use_container_width=True)
|
| 599 |
else:
|
| 600 |
-
st.dataframe(grouped_df.style.format({'Entry Date':'{:%m-%d-%Y %H:%M:%S}','Exit Date':'{:%m-%d-%Y %H:%M:%S}','Buy Price': '${:.2f}', 'Sell Price': '${:.2f}', 'Net P/L':'${:.2f}', 'P/L %':'{:.2f}%'})\
|
| 601 |
.applymap(my_style,subset=['Net P/L'])\
|
| 602 |
.applymap(my_style,subset=['P/L %']), use_container_width=True)
|
| 603 |
|
|
|
|
| 593 |
grouped_df['Entry Date'] = pd.to_datetime(grouped_df['Entry Date'])
|
| 594 |
grouped_df['Exit Date'] = pd.to_datetime(grouped_df['Exit Date'])
|
| 595 |
if bot_selections == "Pure Bread":
|
| 596 |
+
st.dataframe(grouped_df.style.format({'Entry Date':'{:%m-%d-%Y %H:%M:%S}','Exit Date':'{:%m-%d-%Y %H:%M:%S}','Buy Price': '${:.5f}', 'Sell Price': '${:.5f}', 'Net P/L':'${:.2f}', 'P/L %':'{:.2f}%'})\
|
| 597 |
.applymap(my_style,subset=['Net P/L'])\
|
| 598 |
.applymap(my_style,subset=['P/L %']), use_container_width=True)
|
| 599 |
else:
|
| 600 |
+
st.dataframe(grouped_df.style.format({'Entry Date':'{:%m-%d-%Y %H:%M:%S}','Exit Date':'{:%m-%d-%Y %H:%M:%S}','Avg. Buy Price': '${:.2f}', 'Sell Price': '${:.2f}', 'Net P/L':'${:.2f}', 'P/L %':'{:.2f}%'})\
|
| 601 |
.applymap(my_style,subset=['Net P/L'])\
|
| 602 |
.applymap(my_style,subset=['P/L %']), use_container_width=True)
|
| 603 |
|