19. Recategorizing the emotional language using the round 6 groupings.

May 23, 2025, 4:34 PM

chapter_study_clean.xlsx

Missing file

emotion_words_6.csv

Missing file

Load these files. Set values of "-99" in the stood_out column of chapter_study_clean.xlsx to blank strings. Make sure all values in stood_out are strings. The emotion_words_6.csv file contains a dictionary of emotion words that appear as discrete word lists in the "similar words" column, and each list has a category label that appears in the "word" column. Use the emotion_words_6.csv file to review each response to stood_out to identify matching emotion words, even if those matching words are contiguous with punctuation. If matches are found, store a list of matching words in a new variable in the chapter_study_clean dataframe called "stood_out_emotion_matches" and store the relevant category labels in another new variable called "stood_out_emotion_categories". If redundant matches or categories are identified, do not store redundant values. Save the final dataframe as a new excel file called chapter_study_emotions_2.xlsx.

Can you show me a preview of the updated dataframe?

Here is a preview of the updated dataframe:
  • stood_out_emotion_matches: This column contains lists of matching emotion words found in the stood_out responses.
  • stood_out_emotion_categories: This column contains the relevant category labels for the matched emotion words.
Start Datestood_outstood_out_emotion_matchesstood_out_emotion_categories
2025-03-22 09:37:15What stood out to me the most about the clip was...[commitment, appreciation, moral, passion][passionate, respectful, appreciative]
2025-03-22 09:37:17I was more inspired and interested in the topic...[inspire, interest, interested][interested, inspired]
2025-03-22 09:37:37...[][]
2025-03-22 09:37:47...[][]
2025-03-22 09:37:48Observing the reactions was quite enlightening...[observing][observant]
This table shows a few rows from the dataframe, highlighting the new columns added for emotion word matches and their categories.
Feel free to ask if you have any more questions or need further assistance!

Can you visualize the distribution of emotion categories?

Get started with Vizly