Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def plot_scatter(cat, x, y, col):
|
|
37 |
pivot_df[col] = pivot_df.index.str.split("/").str[0]
|
38 |
|
39 |
# Create an interactive scatter plot
|
40 |
-
fig =
|
41 |
|
42 |
# Show the plot
|
43 |
return fig
|
|
|
37 |
pivot_df[col] = pivot_df.index.str.split("/").str[0]
|
38 |
|
39 |
# Create an interactive scatter plot
|
40 |
+
fig = plt.scatter(pivot_df, x=x, y=y, hover_name=pivot_df.index, title=f'{x} vs {y}', color=col, color_continuous_scale="agsunset")
|
41 |
|
42 |
# Show the plot
|
43 |
return fig
|