mirror of
https://github.com/StefBuwalda/whatsapp-wordcloud.git
synced 2025-10-29 18:59:58 +00:00
13 lines
326 B
Python
13 lines
326 B
Python
from backend.process_data import (
|
|
total_frequency_dict as freq_dict,
|
|
total_frequency as total,
|
|
)
|
|
|
|
for author in freq_dict:
|
|
fraction = round(freq_dict[author] / total * 100, 1)
|
|
print(
|
|
f"{author + ":":<30}",
|
|
f"{str(freq_dict.get(author))+"/"+str(total):>15}",
|
|
f"({fraction:>4}%)",
|
|
)
|