Finished histCaseInsensitive

This commit is contained in:
2026-01-31 12:18:07 -05:00
parent 41d8a935b4
commit 1df5c1762c

View File

@@ -30,4 +30,12 @@ def histCaseSensitive(word_dict: Dict[str, List[int]]) -> None:
lowers = [word_dict[word][1] for word in keys]
plt.simple_stacked_bar(keys, [uppers, lowers], width=80)
plt.show()
def histCaseInsensitive(word_dict: Dict[str, List[int]]) -> None:
keys = list(word_dict.keys())
totals = [sum(word_dict[word]) for word in keys]
plt.simple_bar(keys, totals, width=80)
plt.show()