Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def main():
|
|
99 |
continue
|
100 |
|
101 |
# Split the "model" column into 'provider' (before the "/") and 'model' (after the "/")
|
102 |
-
df[['provider', 'model']] = df['model'].str.split('/', 1, expand=True)
|
103 |
# Round total_gpu_energy to 3 decimal places and assign to 'energy'
|
104 |
df['energy'] = df['total_gpu_energy'].round(3)
|
105 |
# Use the energy_score column as 'score'
|
|
|
99 |
continue
|
100 |
|
101 |
# Split the "model" column into 'provider' (before the "/") and 'model' (after the "/")
|
102 |
+
df[['provider', 'model']] = df['model'].str.split(pat='/', n=1, expand=True)
|
103 |
# Round total_gpu_energy to 3 decimal places and assign to 'energy'
|
104 |
df['energy'] = df['total_gpu_energy'].round(3)
|
105 |
# Use the energy_score column as 'score'
|