Spaces:
Sleeping
Sleeping
Aryan Jain commited on
Commit ·
83a38f7
1
Parent(s): 0a46d2f
set incident catefory
Browse files- src/streamlit_app.py +3 -0
src/streamlit_app.py
CHANGED
|
@@ -342,6 +342,9 @@ def render_chart(
|
|
| 342 |
if color_col:
|
| 343 |
df_plot_copy = df_plot.copy()
|
| 344 |
|
|
|
|
|
|
|
|
|
|
| 345 |
if df_plot_copy.duplicated(subset=[x_col, color_col]).any():
|
| 346 |
df_plot_copy[y_col] = (
|
| 347 |
df_plot_copy.groupby([x_col, color_col])[y_col]
|
|
|
|
| 342 |
if color_col:
|
| 343 |
df_plot_copy = df_plot.copy()
|
| 344 |
|
| 345 |
+
if active_incident_col is not None:
|
| 346 |
+
x_col = "_incident_label"
|
| 347 |
+
|
| 348 |
if df_plot_copy.duplicated(subset=[x_col, color_col]).any():
|
| 349 |
df_plot_copy[y_col] = (
|
| 350 |
df_plot_copy.groupby([x_col, color_col])[y_col]
|