From 2fdb600c505eb2854bf8f806b7e8e478ab1bdc53 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Sun, 24 Nov 2024 19:53:23 +0100 Subject: [PATCH] Show page ranks in scientific notation --- src/visualization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visualization.py b/src/visualization.py index 7068b07..e3a45cf 100644 --- a/src/visualization.py +++ b/src/visualization.py @@ -20,7 +20,7 @@ def display_top_urls(ranking: dict[httpx.URL, float], top_n: int = 50) -> None: # Add rows to the table for idx, (url, score) in enumerate(sorted_urls[:top_n], start=1): - table.add_row(str(idx), str(url), f"{score:.18f}") + table.add_row(str(idx), str(url), f"{score:.4e}") # Render the table console = Console()