lair.inventories.EDGAR.get_sector_name#

EDGAR.get_sector_name(sector)[source]#

Generate a formatted name from the sector description.

Parameters:

sector (str) – The key of the sector in the sectors dictionary.

Returns:

str – The formatted name. Sectors missing from sectors keep their code.

Return type:

str

See also

EDGARv7

Names its variables with it.

Examples

The variable that EDGAR v7’s ENF files become, for an EDGARv7 inv:

inv.get_sector_name("ENF")  # 'Enteric_fermentation'