Skip to content

Commit

Permalink
[HOTFIX] Adiciona etapa de remover pontos antes da converção de metro…
Browse files Browse the repository at this point in the history
… para km (#129)

* adiciona filtro para os nomes de tabs da planilha de controle os

* atualiza changelog

* adiociona etapa de remover pontos antes da converção de metro para km

* atualiza changelog

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
vtr363 and mergify[bot] authored Aug 3, 2024
1 parent f428b55 commit b0090f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

- Adiciona filtro para os nomes de tabs da planilha de controle os na task `get_raw_drive_files` (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/128/files)

- Adiociona etapa de remover pontos antes da converção de metro para km no processamento da OS (https://github.com/prefeitura-rio/pipelines_rj_smtr/pull/129)

## Corrigido

## [1.0.5] - 2024-07-23
Expand Down
2 changes: 2 additions & 0 deletions pipelines/migration/br_rj_riodejaneiro_gtfs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ def processa_ordem_servico(

extensao_cols = ["extensao_ida", "extensao_volta"]
quadro[extensao_cols] = quadro[extensao_cols].astype(str)
for col in extensao_cols:
quadro[col] = quadro[col].str.replace(".", "", regex=False)
quadro[extensao_cols] = quadro[extensao_cols].apply(pd.to_numeric)

quadro["extensao_ida"] = quadro["extensao_ida"] / 1000
Expand Down

0 comments on commit b0090f7

Please sign in to comment.