We have included tools for cleaning and analyzing a dataset related to public sentiment on Twitter regarding the Russian invasion of Ukraine. The tools included in the repository include methods for preprocessing and cleaning the dataset, as well as methods for calculating sentiment and mapping locations. We have also included tools for conducting regression analysis and other statistical methods to identify the key predictors of public sentiment on Twitter. Overall, the tools in the repository have been used to clean and analyze the dataset in order to understand the influence of geographic location on public sentiment on Twitter regarding the Russian invasion of Ukraine.