SicCode

data_models.sic_hierarchy.SicCode(self, alpha_code)

Standard Industrial Classification code.

The main representation for SIC in this class is the alpha_code, which we define as:

* The section character e.g. 'A'
* Followed by the numeric SIC code e.g. "0111"
* Padded with 'x' to six characters

For example: “A0111x”

The class supports initialisation with section, code and level via the factory method from_section_code_level.

For Example

SicCode.from_section_code_level(“A”, “0111”, “class”)

Note

This class is mainly for internal use, beyond some basic checks of formatting and consistency it does not validate that a code is defined in UK SIC 2007.

Methods

Name Description
from_section_code_level Factory method for SicCode.

from_section_code_level

data_models.sic_hierarchy.SicCode.from_section_code_level(section, code, level)

Factory method for SicCode.

Note

Used to produce the definitive list of SIC codes, only call with data that defines SIC.