1

I'm trying to count the frequency of each word in an excel sheet which is structured as bellow,

enter image description here

and expecting the output to be like this

enter image description here

```f=pd.read_excel('test.xlsx', header=None)
f.columns = ["id","information"]
f['count']=1
f.groupby(['id']).count()
f.to_excel('output.xlsx')```
Ismael Padilla
  • 5,246
  • 4
  • 23
  • 35
Black Snow
  • 247
  • 2
  • 14

0 Answers0