Can someone help me get my code to work?

I created a colab to share the code and a sample dataset to more easily run my code: Google Colab

I also made a comment in the code to explain the dataset and what i am trying to do.

Thanks in advance.