Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -357,7 +357,7 @@ async def result(request: Request,
|
|
| 357 |
for i, var in enumerate(int_vars):
|
| 358 |
top_categories = df[var].value_counts().nlargest(10).index
|
| 359 |
filtered_df = df[df[var].notnull() & df[var].isin(top_categories)]
|
| 360 |
-
sns.histplot(data=df, x=var, hue=target, kde=
|
| 361 |
axs[i].set_title(var)
|
| 362 |
|
| 363 |
# Annotate the subplot with sample size
|
|
|
|
| 357 |
for i, var in enumerate(int_vars):
|
| 358 |
top_categories = df[var].value_counts().nlargest(10).index
|
| 359 |
filtered_df = df[df[var].notnull() & df[var].isin(top_categories)]
|
| 360 |
+
sns.histplot(data=df, x=var, hue=target, kde=False, ax=axs[i], stat="percent")
|
| 361 |
axs[i].set_title(var)
|
| 362 |
|
| 363 |
# Annotate the subplot with sample size
|