Skip to content

Commit

Permalink
fix arrecadacao_scrape
Browse files Browse the repository at this point in the history
  • Loading branch information
devmedeiros committed Jun 2, 2024
1 parent 14687e5 commit da6b661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/arrecadacao_scrape.py
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ def downloadCSV(url):
arrecadacao['total'] = [pd.to_numeric(x.replace(',', '.')) for x in arrecadacao['VALR_TOTAL']]
arrecadacao['data_arrecadacao'] = [date(year=arrecadacao.ano[i], month=arrecadacao.mes[i], day=1) for i in arrecadacao.index]

arrecadacao = arrecadacao[['ano', 'mes', 'data_arrecadacao', 'total']]
arrecadacao = arrecadacao[['data_arrecadacao', 'total']]

# Salvando as informações novas
arrecadacao.to_sql(name = 'arrecadacao', con=engine, index=False, if_exists='append')

0 comments on commit da6b661

Please sign in to comment.