Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,9 +177,7 @@ def main(file, num_clusters_to_display):
|
|
| 177 |
# Get the largest x categories as specified by num_clusters_to_display
|
| 178 |
largest_categories = sorted_categories[:num_clusters_to_display]
|
| 179 |
|
| 180 |
-
|
| 181 |
-
for i in range(largest_categories.len()):
|
| 182 |
-
print(largest_categories[i])
|
| 183 |
|
| 184 |
# Filter the dataframe to include only the largest categories
|
| 185 |
filtered_df = df[df['Category'].isin(largest_categories)]
|
|
|
|
| 177 |
# Get the largest x categories as specified by num_clusters_to_display
|
| 178 |
largest_categories = sorted_categories[:num_clusters_to_display]
|
| 179 |
|
| 180 |
+
print(largest_categories)
|
|
|
|
|
|
|
| 181 |
|
| 182 |
# Filter the dataframe to include only the largest categories
|
| 183 |
filtered_df = df[df['Category'].isin(largest_categories)]
|