Skip to content

Instantly share code, notes, and snippets.

@Rastrian
Last active October 2, 2022 20:27
Show Gist options
  • Save Rastrian/e0309e15e7cb5f06d391ff31a46b4654 to your computer and use it in GitHub Desktop.
Save Rastrian/e0309e15e7cb5f06d391ff31a46b4654 to your computer and use it in GitHub Desktop.
import pandas as pd
a=pd.read_json('https://resultados.tse.jus.br/oficial/ele2022/544/dados-simplificados/br/br-c0001-e000544-r.json')
print('\n'.join([ f"{c['nm']:<20}\t{c['vap']}\t{c['pvap']}%" for c in a['cand']]))
@Rastrian
Copy link
Author

Rastrian commented Oct 2, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment