Spaces:
Running
Running
Update pages/Statistics.py
Browse files- pages/Statistics.py +2 -1
pages/Statistics.py
CHANGED
@@ -101,8 +101,9 @@ def main(language):
|
|
101 |
st.markdown(f"### {translations['history_title']}")
|
102 |
df_history = pd.DataFrame(history)
|
103 |
|
104 |
-
#
|
105 |
df_history['timestamp'] = pd.to_datetime(df_history['timestamp'])
|
|
|
106 |
|
107 |
# Wyświetlenie tabeli historii
|
108 |
st.dataframe(df_history[['timestamp', 'phone_number', 'risk_assessment']], height=300)
|
|
|
101 |
st.markdown(f"### {translations['history_title']}")
|
102 |
df_history = pd.DataFrame(history)
|
103 |
|
104 |
+
# Konwersja timestamp na datę i dodanie kolumny 'date'
|
105 |
df_history['timestamp'] = pd.to_datetime(df_history['timestamp'])
|
106 |
+
df_history['date'] = df_history['timestamp'].dt.date # Dodanie kolumny date
|
107 |
|
108 |
# Wyświetlenie tabeli historii
|
109 |
st.dataframe(df_history[['timestamp', 'phone_number', 'risk_assessment']], height=300)
|