Skip to content

Commit

Permalink
Set hours/GB column to 2dp for consistency/clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeMartin-ICL committed Dec 18, 2022
1 parent 7ac4277 commit 56c308c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/steamStorageOptimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def human_size(nbytes):

def output_games(games):
df = pd.DataFrame(games)
pd.options.display.float_format = "{:,.2f}".format
df.sort_values("timePerByte", ascending=False, inplace=True)
df["cumulativeTime"] = df["playtime"].cumsum()
df["cumulativeSize"] = df["bsize"].cumsum()
Expand Down

0 comments on commit 56c308c

Please sign in to comment.