Run notebook on Kaggle and Colab give different results


I found this notebook on Kaggle and when I ran it, it worked well but when I ran it on Google Colab, it failed on cell code 54 which is this line:

encoded_examples =, remove_columns=[‘tokens’])

Can anyone advise me, why is that and how to solve it?

Thank you