Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 75d2274

Browse files
committed
CLI: Remove unneeded stats from output
1 parent 71f726a commit 75d2274

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data_diff/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ def _main(
380380

381381
if stats:
382382
diff = list(diff_iter)
383-
unique_diff_count = len({i[0] for _, i in diff})
384383
key_columns_len = len(key_columns)
385384

386385
diff_by_key = {}
@@ -396,8 +395,9 @@ def _main(
396395
for sign in diff_by_key.values():
397396
diff_by_sign[sign] += 1
398397

399-
table1_count = differ.stats["table1_count"]
400-
table2_count = differ.stats["table2_count"]
398+
table1_count = differ.stats.pop("table1_count")
399+
table2_count = differ.stats.pop("table2_count")
400+
del differ.stats['diff_count']
401401
unchanged = table1_count - diff_by_sign["-"] - diff_by_sign["!"]
402402
diff_percent = 1 - unchanged / max(table1_count, table2_count)
403403

0 commit comments

Comments
 (0)