strip trailing comma for name count

This commit is contained in:
Mark Eaton
2025-07-20 02:28:57 -04:00
parent 3615b054f0
commit 5f3599645d
+1
View File
@@ -103,6 +103,7 @@ def names(data):
for row in data: for row in data:
name_parts = row[1].split(" ") name_parts = row[1].split(" ")
for name in name_parts: for name in name_parts:
name = name.rstrip(",")
if name not in stop_words: if name not in stop_words:
names.append(name) names.append(name)
count_names = Counter(names).most_common(20) count_names = Counter(names).most_common(20)