Spaces:
Runtime error
Runtime error
import streamlit as st | |
import pandas as pd | |
import numpy as np | |
st.title('Simple Streamlit App') | |
st.write("Here's our first attempt at using data to create a table:") | |
data = pd.DataFrame({ | |
'first column': np.arange(1, 5), | |
'second column': np.power(10, np.arange(1, 5)) | |
}) | |
st.write(data) | |
if st.button('Say hello'): | |
st.write('Hello!') | |
else: | |
st.write('Press the button above.') | |