hussain786110 commited on
Commit
1f2a8da
·
verified ·
1 Parent(s): cc41388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -94,4 +94,23 @@ if __name__ == '__main__':
94
  app.run_server(debug=True)
95
 
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
 
94
  app.run_server(debug=True)
95
 
96
 
97
+ import streamlit as st
98
+ import pandas as pd
99
+
100
+ # Load your data (use caching to improve performance)
101
+ @st.cache
102
+ def load_data():
103
+ return pd.read_csv('your_data.csv')
104
+
105
+ # Load data
106
+ df = load_data()
107
+
108
+ # Display the data in Streamlit
109
+ st.write(df.head())
110
+
111
+ # Display a simple plot
112
+ import matplotlib.pyplot as plt
113
+ fig, ax = plt.subplots()
114
+ ax.scatter(df['column_x'], df['column_y'])
115
+ st.pyplot(fig)
116