You totally could remove all sorts of special text. I didn’t do that in this post to keep it super simple. For example, you can remove all the characters contained in string.punctuation if you want to.
The code in your github doesnt seem to generate the same figures you posted (the background isnt a map, just plotted lat, long). Maybe push latest changes to your GitHub (assuming I am correct, which I am probably not).