-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AschalewMathewosDamtew/task-1
Second Commit- Streamlit setup -Data file
- Loading branch information
Showing
33,079 changed files
with
3,746,257 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# app/main.py | ||
|
||
import streamlit as st | ||
import os | ||
import sys | ||
# Get the current directory of the script | ||
current_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
# Add the scripts directory to the Python path | ||
sys.path.append(os.path.join(current_dir, '../scripts')) | ||
import data_analysis as da | ||
|
||
|
||
|
||
|
||
st.title("Solar Radiation Data Analysis") | ||
|
||
# Load data | ||
df = da.load_data('data/benin-malanville.csv') | ||
|
||
# Sidebar | ||
option = st.sidebar.selectbox("Select Analysis", ("Summary Statistics", "Time Series Analysis", | ||
"Correlation Analysis", "Wind Analysis", | ||
"Temperature Analysis", "Histograms", | ||
"Z-Score Analysis", "Bubble Chart")) | ||
|
||
# Display analysis | ||
if option == "Summary Statistics": | ||
st.write(da.summary_statistics(df)) | ||
elif option == "Time Series Analysis": | ||
da.time_series_analysis(df) | ||
elif option == "Correlation Analysis": | ||
da.correlation_analysis(df) | ||
elif option == "Wind Analysis": | ||
da.wind_analysis(df) | ||
elif option == "Temperature Analysis": | ||
da.temperature_analysis(df) | ||
elif option == "Histograms": | ||
da.plot_histograms(df) | ||
elif option == "Z-Score Analysis": | ||
st.write(da.z_score_analysis(df)) | ||
elif option == "Bubble Chart": | ||
da.bubble_chart(df) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.