Skip to content

Commit

Permalink
Merge pull request #277 from basedosdados/add-dic-microdados-enem
Browse files Browse the repository at this point in the history
[fix]: br_inep_enem: dicionario csv format
  • Loading branch information
aspeddro authored Sep 26, 2023
2 parents 169f6c9 + 0605f5c commit 832c12b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/br_inep_enem/code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,13 @@ def drop_temporal_cov(key, temporal_cov):
]
)

pd.concat([dict_microdados, dict_by_table]).to_parquet(f"{OUTPUT}/dicionario.parquet", index=False) # type: ignore
pd.concat([dict_microdados, dict_by_table]).to_csv(f"{OUTPUT}/dicionario.csv", index=False) # type: ignore

# Upload dictionary
tb = bd.Table(dataset_id="br_inep_enem", table_id="dicionario")

tb.create(
path=f"{OUTPUT}/dicionario.parquet",
path=f"{OUTPUT}/dicionario.csv",
if_table_exists="replace",
if_storage_data_exists="replace",
source_format="parquet",
)

0 comments on commit 832c12b

Please sign in to comment.