Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ async def get_first_rows(dataset: str, config: str, split: str) -> Dict[str, Dic
|
|
29 |
def get_df_from_rows(api_output):
|
30 |
dfFromSort = pd.DataFrame([row["row"] for row in api_output["rows"]])
|
31 |
try:
|
32 |
-
dfFromSort.sort_values(by=0, axis=
|
33 |
except:
|
34 |
print("Exception sorting due to keyerror?")
|
35 |
return dfFromSort
|
|
|
29 |
def get_df_from_rows(api_output):
|
30 |
dfFromSort = pd.DataFrame([row["row"] for row in api_output["rows"]])
|
31 |
try:
|
32 |
+
dfFromSort.sort_values(by=0, axis=1, ascending=True, inplace=False, kind='mergesort', na_position='last', ignore_index=False, key=None)
|
33 |
except:
|
34 |
print("Exception sorting due to keyerror?")
|
35 |
return dfFromSort
|