Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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 |
-
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|