-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreamlit_app.py
33 lines (26 loc) · 920 Bytes
/
streamlit_app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import streamlit as st
import pandas as pd
import numpy as np
from pydataset import data
def pydata():
# Pydataset controls
selected_data = st.sidebar.selectbox('Select a dataset', data().dataset_id)
title_data = data()[ data()['dataset_id'] == selected_data]['title']
st.header('Datasets')
st.subheader('List of dataset')
with st.expander('Show list of dataset'):
st.write(data())
st.subheader(f'Selected data (`{selected_data}`)')
st.info(title_data)
st.write(data(selected_data))
return
st.title('My Health Metrics')
st.sidebar.text_input("Your name", key="name")
greeting = "Hello "+ st.session_state.name
st.write(greeting)
#df =load_apple_health()
pydata()
# References
# https://towardsdatascience.com/analyse-your-health-with-python-and-apple-health-11c12894aae2
# https://github.com/dataprofessor/pydataset/
# https://blog.streamlit.io/streamlit-firestore/