Skip to content

Commit

Permalink
Merge pull request #7 from dadosjusbr/erro-ao-ler-planilha
Browse files Browse the repository at this point in the history
corrigindo leitura -> lendo sempre o último índice
  • Loading branch information
joellensilva authored May 15, 2024
2 parents 5b8ddaa + dda55da commit 854e887
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
def _read(file, month, year):
try:
data = pd.read_html(file, decimal=',', thousands='.')
data = data[0]
data = data[: -1]
data = data[-1]
data = data.to_numpy()
except Exception as excep:
if str(excep) == "No tables found":
Expand Down

0 comments on commit 854e887

Please sign in to comment.