I have this dataframe
SEED_WORD Metaphoric_Seed size
0 activity literal 9
1 activity metaphoric 1
2 allow literal 1
3 allow metaphoric 1
4 back literal 3
5 backbone literal 4
6 backbone metaphoric 12
7 base literal 14
8 bracket literal 2
9 establish literal 4`
For each distinct seed_word, I would like to have the size of literal and metaphoric.
To get it, I coded:
df_all_annotated.groupby(['SEED_WORD','Metaphoric_Seed'])['SEED_WORD','Metaphoric_Seed'].count().plot.bar()
And got this:
The problem is that I would like the same bar for each seed word, in a way that one color is for metaphoric and one is for the literal. I hope I explained everything well