Commit
·
eb4dec8
1
Parent(s):
42c5a14
Update pre.py
Browse files
pre.py
CHANGED
@@ -48,4 +48,26 @@ def preprocess_uploaded_file(uploaded_file):
|
|
48 |
data['End datetime'] = pd.to_datetime(data['End datetime'], dayfirst=True, errors='coerce')
|
49 |
data['Time spent'] = (data['End datetime'] - data['Start datetime']).dt.total_seconds()
|
50 |
data['Time spent(m:s)'] = pd.to_datetime(data['Time spent'], unit='s').dt.strftime('%M:%S')
|
51 |
-
return data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
data['End datetime'] = pd.to_datetime(data['End datetime'], dayfirst=True, errors='coerce')
|
49 |
data['Time spent'] = (data['End datetime'] - data['Start datetime']).dt.total_seconds()
|
50 |
data['Time spent(m:s)'] = pd.to_datetime(data['Time spent'], unit='s').dt.strftime('%M:%S')
|
51 |
+
return data
|
52 |
+
|
53 |
+
def add_app_description():
|
54 |
+
st.title('DataLink Compare')
|
55 |
+
|
56 |
+
is_selected = st.sidebar.checkbox('Show App Description', value=False)
|
57 |
+
|
58 |
+
if is_selected:
|
59 |
+
with st.expander('Show App Description'):
|
60 |
+
st.markdown("Welcome to DataLink Compare. This tool allows you to analyze CSV files containing scenarios' data and provides insights into their statuses, processing times, and more. You can also compare two CSV files to identify differences and similarities between them.")
|
61 |
+
|
62 |
+
st.markdown("### Instructions:")
|
63 |
+
st.write("1. Upload your CSV file using the file uploader on the sidebar.")
|
64 |
+
st.write("2. Choose between 'Multi' and 'Compare' mode using the button on the sidebar.")
|
65 |
+
st.write("3. In 'Multi' mode, the app analyzes a single CSV file.")
|
66 |
+
st.write("4. In 'Compare' mode, you can upload two CSV files to compare them.")
|
67 |
+
|
68 |
+
st.markdown("### Features:")
|
69 |
+
st.write("- View statistics of passing and failing scenarios.")
|
70 |
+
st.write("- Filter scenarios by functional area and status.")
|
71 |
+
st.write("- Calculate average time spent for each functional area.")
|
72 |
+
st.write("- Display bar graphs showing the number of failed scenarios.")
|
73 |
+
st.write("- Identify consistent failures, new failures, and changes in passing scenarios.")
|