Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,9 @@ st.markdown("""
|
|
| 10 |
<div style='width: 20px; height: 20px; background-color: green; border-radius: 50%; margin-right: 2px;'></div>
|
| 11 |
<div style='width: 20px; height: 20px; background-color: red; border-radius: 50%; margin-right: 2px;'></div>
|
| 12 |
<div style='width: 20px; height: 20px; background-color: yellow; border-radius: 50%; margin-right: 10px;'></div>
|
| 13 |
-
<span style='font-size: 40px; font-weight: bold;'>
|
|
|
|
|
|
|
| 14 |
</div>
|
| 15 |
""", unsafe_allow_html=True)
|
| 16 |
|
|
@@ -88,8 +90,8 @@ if uploaded_file:
|
|
| 88 |
|
| 89 |
# Store the result in session state
|
| 90 |
all_anomalies.rename(columns={"ds": "datetime", "real": "monetary value", "Group": "group"}, inplace=True)
|
|
|
|
| 91 |
all_anomalies['monetary value'] = all_anomalies['monetary value'].apply(lambda x: f"{x:.2f}")
|
| 92 |
-
all_anomalies = all_anomalies[all_anomalies['monetary value'] >= 10,000,000.00]
|
| 93 |
all_anomalies.sort_values(by=['monetary value'], ascending=False, inplace=True)
|
| 94 |
all_anomalies = all_anomalies.fillna('').astype(str)
|
| 95 |
st.session_state['all_anomalies'] = all_anomalies
|
|
|
|
| 10 |
<div style='width: 20px; height: 20px; background-color: green; border-radius: 50%; margin-right: 2px;'></div>
|
| 11 |
<div style='width: 20px; height: 20px; background-color: red; border-radius: 50%; margin-right: 2px;'></div>
|
| 12 |
<div style='width: 20px; height: 20px; background-color: yellow; border-radius: 50%; margin-right: 10px;'></div>
|
| 13 |
+
<span style='font-size: 40px; font-weight: bold;'>PROTAX</span>
|
| 14 |
+
<span style='font-size: 20px; font-weight: bold; color: #333;'>
|
| 15 |
+
<strong>PRO</strong>phet & <strong>TA</strong>pex E<strong>X</strong>plorer</span>
|
| 16 |
</div>
|
| 17 |
""", unsafe_allow_html=True)
|
| 18 |
|
|
|
|
| 90 |
|
| 91 |
# Store the result in session state
|
| 92 |
all_anomalies.rename(columns={"ds": "datetime", "real": "monetary value", "Group": "group"}, inplace=True)
|
| 93 |
+
all_anomalies = all_anomalies[all_anomalies['monetary value'].astype('float') >= 10,000,000.00]
|
| 94 |
all_anomalies['monetary value'] = all_anomalies['monetary value'].apply(lambda x: f"{x:.2f}")
|
|
|
|
| 95 |
all_anomalies.sort_values(by=['monetary value'], ascending=False, inplace=True)
|
| 96 |
all_anomalies = all_anomalies.fillna('').astype(str)
|
| 97 |
st.session_state['all_anomalies'] = all_anomalies
|