Skip to content

Commit

Permalink
Merge pull request #885 from basedosdados/staging/refactor_cvm
Browse files Browse the repository at this point in the history
[Refactor] br_cvm_fi
  • Loading branch information
folhesgabriel authored Nov 7, 2024
2 parents 0e2a899 + 64afabc commit 496c158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/datasets/br_cvm_fi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def clean_data_and_make_partitions(path: str, table_id: str) -> str:
df = pd.read_csv(f"{path}{file}", sep=";")
log(f"File {file} read.")

df.rename(columns={'CNPJ_FUNDO_CLASSE':'CNPJ_FUNDO'}, inplace=True)
df["CNPJ_FUNDO_CLASSE"] = df["CNPJ_FUNDO_CLASSE"].str.replace(r"[/.-]", "")

df["CNPJ_FUNDO"] = df["CNPJ_FUNDO"].str.replace(r"[/.-]", "")
df.drop("ID_SUBCLASSE",axis=1, inplace=True)

df = rename_columns(df_arq, df)

Expand Down

0 comments on commit 496c158

Please sign in to comment.