📜  如何在 python 代码示例中创建频率表

📅  最后修改于: 2022-03-11 14:46:48.784000             🧑  作者: Mango

代码示例1
table = {}
total = 0 
    
for row in dataset:
    total += 1
    value = row[index]
    if values in table: 
        table[value] += 1
    else: 
        table[value] = 1