Spaces:
Runtime error
Runtime error
tracinginsights
commited on
Commit
•
ef887b5
1
Parent(s):
b0f8e2a
Update main.py
Browse files
main.py
CHANGED
@@ -178,7 +178,7 @@ def driver_standings() -> any:
|
|
178 |
)
|
179 |
df = df[["Driver", "PTS", "Car"]]
|
180 |
# reverse the order
|
181 |
-
df = df.sort_values(by="PTS", ascending=
|
182 |
|
183 |
# in Driver column only keep the last 3 characters
|
184 |
df["Driver"] = df["Driver"].str[:-5]
|
|
|
178 |
)
|
179 |
df = df[["Driver", "PTS", "Car"]]
|
180 |
# reverse the order
|
181 |
+
df = df.sort_values(by="PTS", ascending=True)
|
182 |
|
183 |
# in Driver column only keep the last 3 characters
|
184 |
df["Driver"] = df["Driver"].str[:-5]
|