months / src /constants.py
Malode's picture
Sync from GitHub via hub-sync
51dde21 verified
Raw
History Blame Contribute Delete
1.52 kB
"""Domain constants shared across calcs, visuals, and utils."""
METRICS: dict[str, str] = {
"daioe_genai": "๐Ÿง  Generative AI",
"daioe_allapps": "๐Ÿ“š All Applications",
"daioe_stratgames": "โ™Ÿ๏ธ Strategy Games",
"daioe_videogames": "๐ŸŽฎ Video Games",
"daioe_imgrec": "๐Ÿ–ผ๏ธ Image Recognition",
"daioe_imgcompr": "๐Ÿงฉ Image Comprehension",
"daioe_imggen": "๐ŸŽจ Image Generation",
"daioe_readcompr": "๐Ÿ“– Reading Comprehension",
"daioe_lngmod": "โœ๏ธ Language Modeling",
"daioe_translat": "๐ŸŒ Translation",
"daioe_speechrec": "๐ŸŽ™๏ธ Speech Recognition",
}
AI_WAVG_COLS: list[str] = [
"daioe_genai_wavg",
"daioe_allapps_wavg",
"daioe_stratgames_wavg",
"daioe_videogames_wavg",
"daioe_imgrec_wavg",
"daioe_imgcompr_wavg",
"daioe_imggen_wavg",
"daioe_readcompr_wavg",
"daioe_lngmod_wavg",
"daioe_translat_wavg",
"daioe_speechrec_wavg",
]
AI_LABELS: dict[str, str] = {f"{k}_wavg": v for k, v in METRICS.items()}
AI_LEVEL_COLS: list[str] = [c.replace("_wavg", "_Level_Exposure") for c in AI_WAVG_COLS]
AI_PCTL_COLS: list[str] = [f"pctl_{c}" for c in AI_WAVG_COLS]
EXPOSURE_LABELS: dict[int, str] = {
1: "Very Low",
2: "Low",
3: "Medium",
4: "High",
5: "Very High",
}
FIRST_COLS: list[str] = [
"code_1",
"occupation",
"year",
"month",
"gender",
"emp_count",
"weight_sum",
"chg_1m",
"chg_3m",
"chg_6m",
"pct_chg_1m",
"pct_chg_3m",
"pct_chg_6m",
]