sic_meta_model.ClassificationMeta

data_models.sic_meta_model.ClassificationMeta()

Represents a classification meta model.

Attributes

Name Type Description
code str Category code. Either a full code or a partial code for a larger hierarchical group. Partial code has last digits replaced by ‘x’.
title str Short descriptive title of the code category.
detail str Descriptive label of the category associated with the code.
includes List[str] Optional list of titles that should be included in this category.
excludes List[str] Optional list of titles that should be excluded from this category.

Methods

Name Description
check_code_match Check for partial match of the code.
pretty_print Prints nicely the present fields.

check_code_match

data_models.sic_meta_model.ClassificationMeta.check_code_match(subcode)

Check for partial match of the code. Discards 1st letter on SIC and then check only valid numbers.

Parameters

Name Type Description Default
subcode str 2-5 digits code for matching required

Returns

Type Description
bool if partial match found

pretty_print

data_models.sic_meta_model.ClassificationMeta.pretty_print(subset_digits=[4, 2])

Prints nicely the present fields.

Returns

Type Description
str description