k96beni commited on
Commit
2dea5de
·
verified ·
1 Parent(s): 162ede3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +103 -20
README.md CHANGED
@@ -1,20 +1,103 @@
1
- ---
2
- title: Analyzer
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
- pinned: false
11
- short_description: 'Reports '
12
- license: bigscience-bloom-rail-1.0
13
- ---
14
-
15
- # Welcome to Streamlit!
16
-
17
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
18
-
19
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
20
- forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Charging Outlets Analytics Dashboard
2
+
3
+ This Streamlit application helps you analyze charging outlet performance data and create insightful visualizations.
4
+
5
+ ## Features
6
+
7
+ - **Data Upload**: Upload Sessions.xlsx and Overview.xlsx files containing charging session data
8
+ - **Interactive Dashboard**: Visualize key metrics about charging outlets
9
+ - **Filtering**: Filter data by specific areas
10
+ - **PDF Export**: Generate downloadable PDF reports with visualizations
11
+
12
+ ## Dashboard Views
13
+
14
+ 1. **Key Metrics**
15
+ - Number of outlets per area
16
+ - kWh/month per area
17
+ - Total sessions and energy consumption
18
+
19
+ 2. **Utilization Analysis**
20
+ - Heatmap of outlet utilization (used outlet days / total outlet days)
21
+ - Detailed utilization metrics table
22
+
23
+ 3. **Energy Consumption Analysis**
24
+ - kWh per outlet per month per area
25
+ - Average kWh per session
26
+
27
+ ## Deployment on Hugging Face Spaces
28
+
29
+ ### Prerequisites
30
+
31
+ - A Hugging Face account
32
+ - Basic knowledge of Git
33
+
34
+ ### Deployment Steps
35
+
36
+ 1. Create a new Space on Hugging Face:
37
+ - Go to https://huggingface.co/spaces
38
+ - Click "Create new Space"
39
+ - Select "Streamlit" as the SDK
40
+ - Name your Space and set visibility options
41
+
42
+ 2. Clone the repository locally:
43
+ ```bash
44
+ git clone https://huggingface.co/spaces/YOUR-USERNAME/YOUR-SPACE-NAME
45
+ ```
46
+
47
+ 3. Add the application files to the repository:
48
+ - Copy `app.py` to the root of the repository
49
+ - Copy `requirements.txt` to the root of the repository
50
+
51
+ 4. Commit and push your changes:
52
+ ```bash
53
+ git add .
54
+ git commit -m "Initial application setup"
55
+ git push
56
+ ```
57
+
58
+ 5. Wait for the build to complete on Hugging Face Spaces
59
+
60
+ 6. Your application is now live at `https://huggingface.co/spaces/YOUR-USERNAME/YOUR-SPACE-NAME`
61
+
62
+ ## Data Format
63
+
64
+ ### Sessions.xlsx
65
+
66
+ Contains charging session data with the following columns:
67
+ - **Områdeskod**: Area code
68
+ - **Område**: Area name
69
+ - **Uttag**: Outlet identifier
70
+ - **Startad**: Session start time
71
+ - **Avslutad**: Session end time
72
+ - **Laddat (kWh)**: Energy consumed in kWh
73
+ - **Kostnad (exkl)**: Cost (excluding tax)
74
+ - **Valuta**: Currency
75
+
76
+ ### Overview.xlsx
77
+
78
+ Contains area and outlet information with the following columns:
79
+ - **Namn**: Name
80
+ - **Avtalskund**: Contract customer
81
+ - **Synlighet**: Visibility
82
+ - **Antal uttag**: Number of outlets
83
+ - **Start fasta avgifter**: Start of fixed fees
84
+ - **Fakturerbara ACAntal uttag**: Billable AC number of outlets
85
+ - **Fakturerbara DCAntal uttag**: Billable DC number of outlets
86
+ - **Kolumn1**: Additional column
87
+
88
+ ## Usage
89
+
90
+ 1. Upload both required files using the file uploaders in the sidebar
91
+ 2. Use the dropdown in the sidebar to filter by specific areas
92
+ 3. Navigate between tabs to view different dashboards
93
+ 4. Generate a PDF report using the button in the sidebar
94
+
95
+ ## Requirements
96
+
97
+ - streamlit==1.27.0
98
+ - pandas==2.0.3
99
+ - plotly==5.17.0
100
+ - numpy==1.25.2
101
+ - reportlab==4.0.4
102
+ - pillow==10.0.1
103
+ - openpyxl==3.1.2