Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second Commit- Streamlit setup -Data file #1

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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