forked from AIESEC-LK/analytics-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteam5.py
22 lines (16 loc) · 845 Bytes
/
team5.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from app import fetch_google_sheet_data, show_pie_chart, show_line_chart, show_bar_chart
import streamlit as st
import matplotlib.pyplot as plt
# add a title to your section
title = 'Team 5'
# add a published csv link from google sheets
google_sheet_link = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQvZjeq6jPoMOfeJIS11esCTGpE92W7QvC7XwLyGlZi23TYjgBL1aImsn_dW8iUxKSw_qhEDA_be59y/pub?gid=1847193799&single=true&output=csv'
#############################################################
google_sheet_data = fetch_google_sheet_data(google_sheet_link)
def page():
st.subheader(title)
st.write(google_sheet_data)
# google_sheet_data = df[google_sheet_data]
# show_pie_chart(google_sheet_data, 'column name')
# show_bar_chart(google_sheet_data, 'column name')
# show_line_chart(google_sheet_data, 'column name')