BananaSauce commited on
Commit
37a7560
·
1 Parent(s): 9226a94

Update README.md

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