Skip to content

Commit

Permalink
Update Engezny.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MDSH14 authored Nov 9, 2021
1 parent 21cb9e7 commit d04ecdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Engezny/Engezny.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ def __value_counts(self, Data, multi_sep=None, single_sep=None):
Dict = dict()
try:
for i in Data.dropna().index:
Words = str(Data).split(multi_sep)
Words = str(Data[i]).split(multi_sep)
for Word in Words:
Word = Word.split(single_sep)[0].strip()
if single_sep != None:
Word = Word.split(single_sep)[0].strip()
else:
Word = Word.strip()
if Word in Dict.keys():
Dict[Word] += 1
else:
Expand Down

0 comments on commit d04ecdd

Please sign in to comment.