mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
sorting the values descending, to have the top
most of the given column first
This commit is contained in:
@ -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]
|
||||||
|
Reference in New Issue
Block a user