Skip to content

Commit

Permalink
Remove non-hs92 codes from colombia product codes COL-951
Browse files Browse the repository at this point in the history
  • Loading branch information
makmanalp committed May 11, 2016
1 parent 80bdcf0 commit fb362f8
Show file tree
Hide file tree
Showing 5 changed files with 1,248 additions and 18 deletions.
4 changes: 4 additions & 0 deletions product/HS/Colombia_Prospedia/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
"name_es", "name_short_es",
"name_short_en", "parent_id"]]

hs92_codes = pd.read_csv("./in/hs92_codes.csv", dtype=str)
codes_to_drop = (parent_id_table.level == "4digit") & (~parent_id_table.code.isin(hs92_codes.code))
parent_id_table = parent_id_table[~codes_to_drop]

c = Classification(parent_id_table, h)

c.to_csv("out/products_colombia_prospedia.csv")
Expand Down
Loading

0 comments on commit fb362f8

Please sign in to comment.