sorting the values descending, to have the top

most of the given column first
This commit is contained in:
Karma Riuk
2025-05-20 09:59:09 +02:00
parent 975b25f2f6
commit e6c5c8df82

View File

@ -655,7 +655,7 @@ if __name__ == "__main__":
if sort_column is not None: if sort_column is not None:
if sort_column not in df.columns: if sort_column not in df.columns:
raise ValueError(f"Column '{sort_column}' not present in given csv file") raise ValueError(f"Column '{sort_column}' not present in given csv file")
df.sort_values(sort_column, inplace=True) df.sort_values(sort_column, inplace=True, ascending=False)
if args.only_repo is not None: if args.only_repo is not None:
df = df.loc[df["name"] == args.only_repo] df = df.loc[df["name"] == args.only_repo]