Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import pandas as pd
|
| 3 |
+
import numpy as np
|
| 4 |
+
|
| 5 |
+
# Title of the dashboard
|
| 6 |
+
st.title('Simple Data Dashboard')
|
| 7 |
+
# Create a sample dataframe
|
| 8 |
+
df = pd.DataFrame({
|
| 9 |
+
'Column A': np.random.randn(100),
|
| 10 |
+
'Column B': np.random.randn(100),
|
| 11 |
+
'Column C': np.random.randn(100)
|
| 12 |
+
})
|
| 13 |
+
# Display the dataframe
|
| 14 |
+
st.write("Here's a sample dataframe:", df)
|
| 15 |
+
# Add a line chart
|
| 16 |
+
st.line_chart(df)
|