SIC

data_models.sic_hierarchy.SIC(self, nodes, code_lookup)

Main class for SIC lookups.

Usage

sic = load_hierarchy(sic_df, sic_index_df)
sic[“01.1”]
sic[“011”]
sic[“A011xx”]

Methods

Name Description
all_leaf_activities All activities for 5-digit SIC.
all_leaf_descriptions All descriptions for 5-digit SIC.
all_leaf_text Returns all short text descriptions of 5-digit level SIC.

all_leaf_activities

data_models.sic_hierarchy.SIC.all_leaf_activities()

All activities for 5-digit SIC.

Note

Does not include 4-digit SIC codes where those codes have a 5-digit expansion.

i.e. Only returns for leaf nodes.

all_leaf_descriptions

data_models.sic_hierarchy.SIC.all_leaf_descriptions()

All descriptions for 5-digit SIC.

Note

Does not include 4-digit SIC codes where those codes have a 5-digit expansion.

i.e. Only returns for leaf nodes.

all_leaf_text

data_models.sic_hierarchy.SIC.all_leaf_text()

Returns all short text descriptions of 5-digit level SIC.

Includes

  • Activities from the SIC index
  • Description from the SIC structure

Returns

Type Description
pd.DataFrame pd.DataFrame Two columns code, text