Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -709,12 +709,11 @@ with demo:
|
|
| 709 |
try:
|
| 710 |
dataframe1 = pd.read_csv("https://docs.google.com/spreadsheets/d/1C8aLqgCqLYcMiIFf-P_Aosaa03C_WLIB_UyqvjSdWg8/export?format=csv&gid=0") # required for timing
|
| 711 |
column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
|
| 712 |
-
dataframe2 = pd.DataFrame({'Levels': column_values_unique})
|
| 713 |
-
|
| 714 |
|
| 715 |
counts = {}
|
| 716 |
try:
|
| 717 |
-
for value in
|
| 718 |
counts[value] = counts.get(value, 0) + 1
|
| 719 |
dataframe2['Members'] = dataframe2['Levels'].map(counts)
|
| 720 |
except Exception as e:
|
|
|
|
| 709 |
try:
|
| 710 |
dataframe1 = pd.read_csv("https://docs.google.com/spreadsheets/d/1C8aLqgCqLYcMiIFf-P_Aosaa03C_WLIB_UyqvjSdWg8/export?format=csv&gid=0") # required for timing
|
| 711 |
column_values_unique = sorted(dataframe1.iloc[:, 3].unique())
|
| 712 |
+
dataframe2 = pd.DataFrame({'Levels': column_values_unique})
|
|
|
|
| 713 |
|
| 714 |
counts = {}
|
| 715 |
try:
|
| 716 |
+
for value in test_merge.iloc[:, 3]:
|
| 717 |
counts[value] = counts.get(value, 0) + 1
|
| 718 |
dataframe2['Members'] = dataframe2['Levels'].map(counts)
|
| 719 |
except Exception as e:
|