Quetiento commited on
Commit
6414bfb
1 Parent(s): f4d1e4d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -6,12 +6,4 @@ df_diamonds = pd.read_csv('diamonds.csv')
6
 
7
  st.title("Diamond APP sorting festivity. Noted by Dimitri")
8
 
9
- # Assuming 'df_diamonds' is your DataFrame with the 'price', 'carat', 'cut', 'color', and 'clarity' columns
10
- # Specify the columns to be used in the graph
11
- columns = ['price', 'carat', 'cut', 'color', 'clarity']
12
-
13
- # Create a graph based on the specified columns
14
- fig = px.scatter(df_diamonds[columns], x='carat', y='price', color='cut', symbol='color', facet_col='clarity')
15
-
16
- # Display the graph in Streamlit
17
- st.plotly_chart(fig, use_container_width=True)
 
6
 
7
  st.title("Diamond APP sorting festivity. Noted by Dimitri")
8
 
9
+ st.pyplot(fig)