I am attempting to plot the following dataframe of emotions, sorted by week as my time variable. This is meant to be a bit of a time series, i.e., longitudinal, with seven total lines ebbing and flowing depending on the value count of each emotion each week.
I can’t exactly figure out how my pivot is supposed to be prepared, though. My week numbers are my X-axis, and the frequency of each emotion each week is the Y-axis (seven lines total).
sns.lineplot(x='week_number', y='count', hue='sentiment', data=sorted)
I’ve unsuccessfully tried putting ‘count’ as my Y-axis with Seaborn, to no avail…because I just can’t figure out how to make the counts their own portion of a pivot. Help please!