File size: 1,520 Bytes
51dde21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""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",
]