From 56c308c7aaa7e344950edde43a2bc933ee620e18 Mon Sep 17 00:00:00 2001 From: Jake Martin Date: Sun, 18 Dec 2022 15:15:43 +0000 Subject: [PATCH] Set hours/GB column to 2dp for consistency/clarity --- src/steamStorageOptimiser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/steamStorageOptimiser.py b/src/steamStorageOptimiser.py index 1091ee8..a3de50c 100644 --- a/src/steamStorageOptimiser.py +++ b/src/steamStorageOptimiser.py @@ -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()