Skip to content

Commit

Permalink
Merge pull request #1 from AschalewMathewosDamtew/task-1
Browse files Browse the repository at this point in the history
Second Commit- Streamlit setup -Data file
  • Loading branch information
AschalewMathewosDamtew authored Aug 24, 2024
2 parents 221e277 + 2b24854 commit 66873fb
Show file tree
Hide file tree
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.
43 changes: 43 additions & 0 deletions app/main.py
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)
525,601 changes: 525,601 additions & 0 deletions data/benin-malanville.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 66873fb

Please sign in to comment.