setting up the data to generate a piechart

This commit is contained in:
2025-04-18 18:21:50 +02:00
parent e7cfc81146
commit 2bf664e25f
4 changed files with 27 additions and 8 deletions

View File

@@ -1,11 +1,11 @@
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
from backend.process_data import frequency_dictionary
from backend.process_data import word_frequency_dict
from collections import Counter
# Example dictionary
data = frequency_dictionary
data = word_frequency_dict
# Choose how many top words to show
TOP_N = 5