Will there be more candidates with 'Bolsonaro' in their ballot names in the 2024 Brazilian elections compared to 2020?
4
486Ṁ13kresolved Oct 31
Resolved
NO1H
6H
1D
1W
1M
ALL
Brazil's municipal elections are held every four years to elect mayors, deputy mayors, and city councilors.
In the 2020 municipal elections, 78 candidates included 'Bolsonaro' in their ballot names, with only 1 being elected.
This prediction market seeks to determine if the 2024 municipal elections will see an increase in the number of candidates adopting 'Bolsonaro' in their ballot names.
It is worth noting that Brazilian election rules permit candidates to select distinctive names for the ballot, which can incorporate the names of prominent politicians or public figures
This question is managed and resolved by Manifold.
Get
1,000 to start trading!
🏅 Top traders
# | Name | Total profit |
---|---|---|
1 | Ṁ287 | |
2 | Ṁ3 | |
3 | Ṁ1 |
Sort by:
import zipfile
import pandas as pd
from io import BytesIO
def count_bolsonaro_candidates(zip_path):
"""
Lists and counts candidates with 'Bolsonaro' in their names from all CSVs in a zip,
excluding the BRASIL.csv file to avoid double counting.
"""
total_count = 0
with zipfile.ZipFile(zip_path) as zf:
csv_files = [f for f in zf.namelist()
if f.endswith('.csv') and 'BRASIL' not in f]
for csv_file in csv_files:
with zf.open(csv_file) as file:
df = pd.read_csv(BytesIO(file.read()),
encoding='latin-1',
sep=';')
bolsonaro_candidates = df[df['NM_URNA_CANDIDATO'].str.contains('BOLSONARO',
case=False,
na=False)]
count = len(bolsonaro_candidates)
if count > 0:
print(f"\n- {csv_file}: {count} candidates:")
for _, candidate in bolsonaro_candidates.iterrows():
print(f" • {candidate['NM_URNA_CANDIDATO']}")
else:
print(f"\n- {csv_file}: {count} candidates")
total_count += count
return total_count
zip_files = {
2020: 'consulta_cand_2020.zip', # from https://cdn.tse.jus.br/estatistica/sead/odsele/consulta_cand/consulta_cand_2020.zip
2024: 'consulta_cand_2024.zip' # from https://cdn.tse.jus.br/estatistica/sead/odsele/consulta_cand/consulta_cand_2024.zip
}
for year, zip_path in zip_files.items():
print(f"\nProcessing {year} election data:")
count = count_bolsonaro_candidates(zip_path)
print(f"\nTotal candidates with 'Bolsonaro' in name ({year}): {count}")
People are also trading
Related questions
Will Jair Bolsonaro be on the ballot in the next Brazilian presidential elections?
3% chance
Will Jair Bolsonaro be a candidate for the 2026 Brazilian presidential election?
6% chance
Will Jair Bolsonaro be one of the top two candidates in the next Brazilian Presidential elections?
3% chance
Who will be on the ballot for the 2026 Brazilian presidential election?
Will Jair Bolsonaro ever be a candidate again for any Brazilian presidential election?
17% chance
Will Brazil 2026 election have the same outcome as the US 2024 election?
10% chance
Will Jair Bolsonaro win the next Brazilian presidential elections?
5% chance
Who will win the 2026 Brazilian Presidential Election?
Will Michelle Bolsonaro be a candidate for the 2026 Brazilian presidential election?
12% chance
Will Lula be a candidate for the 2026 Brazilian presidential election?
58% chance