-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
If this error occurs
Traceback (most recent call last):
...
KeyError: 'content'
...it is possible to refactor this function (lines 176 to 179)
#Filling the dataset with sender name and message per row
# Go through all rows
for index, row in dictdf.iterrows():
tempoutputdf = pd.DataFrame({"sender": [dictdf.iloc[index]['sender_name']],
"message": [dictdf.iloc[index]['content']]})
outputdflist.append(tempoutputdf)with
#Filling the dataset with sender name and message per row
#Go through all rows
for index, row in dictdf.iterrows():
content = row.get('content', '')
tempoutputdf = pd.DataFrame({"sender": [row['sender_name']],
"message": [content]})
outputdflist.append(tempoutputdf)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels