I want to count the 20 words that appear most frequently in the dataset, except for punctuation. So far the code I have tried is
dataset['token'].value_counts()[:20]
output :
, 88144
. 49109
dan 37283
di 33701
yang 29353
-LRB- 19843
-RRB- 19736
'' 15906
`` 15232
dengan 15231
pada 15021
dari 14900
tahun 13079
sebagai 9038
ini 8371
untuk 8297
dalam 8266
adalah 7950
menjadi 7414
oleh 5974
but there are still punctuation marks. how to do it so that the highest word frequency does not include the punctuation? Thanks..