Skip to content

DBT: Brazil Mdic Disaggregated 2015 Beef

File location: s3://trase-storage/brazil/trade/mdic/disaggregated/brazil_mdic_disaggregated_2015_beef.csv

DBT model name: brazil_mdic_disaggregated_2015_beef

Explore on Metabase: Full table; summary statistics

DBT details


Description

Brazil MDIC/SECOMEX Disaggregation

This dataset attempts to reconstruct the MDIC/SECOMEX trade export dataset to the level of information that was provided before 2018. To do so, it combines the post-2018 MDIC/SECOMEX trade export datasets with bills of lading.

This reconstruction is run as a model written in using the supply chain mapping tool: see trase/models/brazil/customs_2019/README.md.

History

It was last run by Nanxu Su for the update to the Brazil beef model to add the year 2020. Since we only needed the model output for beef, we filtered to beef commodity codes and wrote the file brazil_mdic_disaggregated_2020_beef.csv.


Details

Column Type Description

Models / Seeds

  • model.trase_duckdb.empresas_cadastro_2015
  • model.trase_duckdb.brazil_bol_2015
  • model.trase_duckdb.cd_combined_2015

No called script or script source not found.

import pandas as pd


def model(dbt, cursor):
    dbt.ref("empresas_cadastro_2015")
    dbt.ref("brazil_bol_2015")
    dbt.ref("cd_combined_2015")

    raise NotImplementedError()
    return pd.DataFrame({"hello": ["world"]})