BananaSauce commited on
Commit
1761747
·
1 Parent(s): 9661f03

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -42
README.md CHANGED
@@ -7,64 +7,83 @@ sdk: streamlit
7
  sdk_version: 1.25.0
8
  app_file: app.py
9
  pinned: false
 
10
  ---
11
- Batch Run CSV Analyzer
12
- This script is a Streamlit application for analyzing Batch report CSV files containing scenario data. It provides functionalities to process and visualize the data, including the ability to compare data from different CSV files.
13
-
14
- Table of Contents
15
- Overview
16
- Installation
17
- Usage
18
- Modes
19
- Functionality
20
- File Structure
21
- License
22
- Overview
 
 
 
23
  This script uses Streamlit, a Python library for creating interactive web applications, along with other libraries like Pandas, Matplotlib, and NumPy, to perform analysis and visualization on CSV files containing scenario data. The primary features of this script include:
24
 
25
- Uploading and processing CSV files containing scenario data.
26
- Grouping scenarios by functional area and status (failed or passed).
27
- Displaying counts of failed and passed scenarios.
28
- Visualizing the distribution of failures by functional area using bar graphs.
29
- Calculating and displaying average time spent on each functional area.
30
- Installation
31
- Install the required Python libraries by running:
 
 
32
 
33
  pip install pandas streamlit matplotlib numpy
34
 
35
- Usage
 
36
  To run the script, navigate to the directory containing the script in your terminal and execute the following command:
37
 
38
  streamlit run csv_analyzer.py
39
  This will open a new browser window displaying the interactive Streamlit application.
40
 
41
- Modes
 
42
  The script operates in two modes: Multi mode and Compare mode.
43
 
44
- Multi Mode
45
  In this mode, you can upload a multiple CSV file for analysis. The application will then display various statistics and visualizations related to the data in the file.
46
 
47
- Compare Mode
 
48
  In this mode, you can upload two CSV files for comparison. The application will analyze and compare the data from these two files, providing insights into the differences between them.
49
 
50
  You can switch between these modes using the buttons provided in the sidebar.
51
 
52
- Functionality
53
- Data Processing
54
- Uploaded CSV files are preprocessed using the preprocess_uploaded_file function to handle headers and prepare the data for analysis.
55
- Scenarios are grouped based on their status (failed or passed) and functional area.
56
- Visualization
57
- The application displays counts of failed and passed scenarios.
58
- Users can select a specific status (failed or passed) to view scenarios within that category.
59
- The selected functional areas can be filtered to narrow down the display.
60
- For failed scenarios, a bar graph displays the number of failures in each functional area.
61
- Average Time Spent
62
- The average time spent on each functional area is calculated and displayed.
63
- Compare Mode
64
- In Compare mode, users can upload two CSV files for comparison.
65
- The application compares and analyzes the data from both files, highlighting any differences.
66
- File Structure
67
- app.py: The main script containing the Streamlit application code.
68
- second.py: A module providing functions for handling comparison mode.
69
- multiple.py: A module providing functions for handling multi-mode.
70
- pre.py: A module containing preprocessing functions.
 
 
 
 
 
 
 
 
 
 
 
7
  sdk_version: 1.25.0
8
  app_file: app.py
9
  pinned: false
10
+ license: apache-2.0
11
  ---
12
+ # Batch Run CSV Analyzer
13
+
14
+ This script is a Streamlit application for analyzing batch run report CSV files containing scenario data. It provides functionalities to process and visualize the data, including the ability to compare data from different CSV files.
15
+
16
+ ## Table of Contents
17
+
18
+ - [Overview](#overview)
19
+ - [Installation](#installation)
20
+ - [Usage](#usage)
21
+ - [Modes](#modes)
22
+ - [Functionality](#functionality)
23
+ - [File Structure](#file-structure)
24
+
25
+ ## Overview
26
+
27
  This script uses Streamlit, a Python library for creating interactive web applications, along with other libraries like Pandas, Matplotlib, and NumPy, to perform analysis and visualization on CSV files containing scenario data. The primary features of this script include:
28
 
29
+ - Uploading and processing CSV files containing scenario data.
30
+ - Grouping scenarios by functional area and status (failed or passed).
31
+ - Displaying counts of failed and passed scenarios.
32
+ - Visualizing the distribution of failures by functional area using bar graphs.
33
+ - Calculating and displaying average time spent on each functional area.
34
+
35
+ ## Installation
36
+
37
+ 1. Install the required Python libraries by running:
38
 
39
  pip install pandas streamlit matplotlib numpy
40
 
41
+ ## Usage
42
+
43
  To run the script, navigate to the directory containing the script in your terminal and execute the following command:
44
 
45
  streamlit run csv_analyzer.py
46
  This will open a new browser window displaying the interactive Streamlit application.
47
 
48
+ ## Modes
49
+
50
  The script operates in two modes: Multi mode and Compare mode.
51
 
52
+ ### Multi Mode
53
  In this mode, you can upload a multiple CSV file for analysis. The application will then display various statistics and visualizations related to the data in the file.
54
 
55
+ ### Compare Mode
56
+
57
  In this mode, you can upload two CSV files for comparison. The application will analyze and compare the data from these two files, providing insights into the differences between them.
58
 
59
  You can switch between these modes using the buttons provided in the sidebar.
60
 
61
+ ## Functionality
62
+
63
+ ### Data Processing
64
+
65
+ - Uploaded CSV files are preprocessed using the `preprocess_uploaded_file` function to handle headers and prepare the data for analysis.
66
+ - Scenarios are grouped based on their status (failed or passed) and functional area.
67
+
68
+ ### Visualization
69
+
70
+ - The application displays counts of failed and passed scenarios.
71
+ - Users can select a specific status (failed or passed) to view scenarios within that category.
72
+ - The selected functional areas can be filtered to narrow down the display.
73
+ - For failed scenarios, a bar graph displays the number of failures in each functional area.
74
+
75
+ ### Average Time Spent
76
+
77
+ - The average time spent on each functional area is calculated and displayed.
78
+ -
79
+ ### Compare Mode
80
+
81
+ - In Compare mode, users can upload two CSV files for comparison.
82
+ - The application compares and analyzes the data from both files, highlighting any differences.
83
+
84
+ ## File Structure
85
+
86
+ - `csv_analyzer.py`: The main script containing the Streamlit application code.
87
+ - `second.py`: A module providing functions for handling comparison mode.
88
+ - `multiple.py`: A module providing functions for handling multi-mode.
89
+ - `pre.py`: A module containing preprocessing functions.