Here you will find the code for my analysis of "Collective Candidacies" in the 2012, 2016, 2020 Brazilian municipal elections, and 2018 elections for deputy. You can read the article (in Portuguese) where these results are presented in the following link: http://www.cepesp.io/candidaturas-coletivas/