optimize lte capacity columns name
Browse files- process_kpi/process_lte_capacity.py +36 -0
- utils/convert_to_excel.py +30 -30
process_kpi/process_lte_capacity.py
CHANGED
|
@@ -439,7 +439,43 @@ def lte_bh_dfs_per_kpi(
|
|
| 439 |
prb_usage_threshold,
|
| 440 |
prb_diff_between_cells_threshold,
|
| 441 |
)
|
|
|
|
| 442 |
lte_analysis_df = lte_analysis_df[LTE_ANALYSIS_COLUMNS]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 443 |
|
| 444 |
return [bh_kpi_df, lte_analysis_df]
|
| 445 |
|
|
|
|
| 439 |
prb_usage_threshold,
|
| 440 |
prb_diff_between_cells_threshold,
|
| 441 |
)
|
| 442 |
+
|
| 443 |
lte_analysis_df = lte_analysis_df[LTE_ANALYSIS_COLUMNS]
|
| 444 |
+
# Rename columns
|
| 445 |
+
lte_analysis_df = lte_analysis_df.rename(
|
| 446 |
+
columns={
|
| 447 |
+
"LNCEL_name_l800": "name_l800",
|
| 448 |
+
"LNCEL_name_l1800": "name_l1800",
|
| 449 |
+
"LNCEL_name_l2300": "name_l2300",
|
| 450 |
+
"LNCEL_name_l2600": "name_l2600",
|
| 451 |
+
"LNCEL_name_l1800s": "name_l1800s",
|
| 452 |
+
"avg_prb_usage_bh_l800": "prb_l800",
|
| 453 |
+
"avg_prb_usage_bh_l1800": "prb_l1800",
|
| 454 |
+
"avg_prb_usage_bh_l2300": "prb_l2300",
|
| 455 |
+
"avg_prb_usage_bh_l2600": "prb_l2600",
|
| 456 |
+
"avg_prb_usage_bh_l1800s": "prb_l1800s",
|
| 457 |
+
"avg_prb_usage_bh_l800_2nd": "prb_l800_2nd",
|
| 458 |
+
"avg_prb_usage_bh_l1800_2nd": "prb_l1800_2nd",
|
| 459 |
+
"avg_prb_usage_bh_l2300_2nd": "prb_l2300_2nd",
|
| 460 |
+
"avg_prb_usage_bh_l2600_2nd": "prb_l2600_2nd",
|
| 461 |
+
"avg_prb_usage_bh_l1800s_2nd": "prb_l1800s_2nd",
|
| 462 |
+
"avg_act_ues_l800": "act_ues_l800",
|
| 463 |
+
"avg_act_ues_l1800": "act_ues_l1800",
|
| 464 |
+
"avg_act_ues_l2300": "act_ues_l2300",
|
| 465 |
+
"avg_act_ues_l2600": "act_ues_l2600",
|
| 466 |
+
"avg_act_ues_l1800s": "act_ues_l1800s",
|
| 467 |
+
"avg_dl_thp_l800": "dl_thp_l800",
|
| 468 |
+
"avg_dl_thp_l1800": "dl_thp_l1800",
|
| 469 |
+
"avg_dl_thp_l2300": "dl_thp_l2300",
|
| 470 |
+
"avg_dl_thp_l2600": "dl_thp_l2600",
|
| 471 |
+
"avg_dl_thp_l1800s": "dl_thp_l1800s",
|
| 472 |
+
"avg_ul_thp_l800": "ul_thp_l800",
|
| 473 |
+
"avg_ul_thp_l1800": "ul_thp_l1800",
|
| 474 |
+
"avg_ul_thp_l2300": "ul_thp_l2300",
|
| 475 |
+
"avg_ul_thp_l2600": "ul_thp_l2600",
|
| 476 |
+
"avg_ul_thp_l1800s": "ul_thp_l1800s",
|
| 477 |
+
}
|
| 478 |
+
)
|
| 479 |
|
| 480 |
return [bh_kpi_df, lte_analysis_df]
|
| 481 |
|
utils/convert_to_excel.py
CHANGED
|
@@ -151,36 +151,36 @@ def get_format_map_by_format_type(formats: dict, format_type: str) -> dict:
|
|
| 151 |
"site_config_band": formats["blue"],
|
| 152 |
"Longitude": formats["blue"],
|
| 153 |
"Latitude": formats["blue"],
|
| 154 |
-
# "
|
| 155 |
-
# "
|
| 156 |
-
# "
|
| 157 |
-
# "
|
| 158 |
-
# "
|
| 159 |
-
"
|
| 160 |
-
"
|
| 161 |
-
"
|
| 162 |
-
"
|
| 163 |
-
"
|
| 164 |
-
"
|
| 165 |
-
"
|
| 166 |
-
"
|
| 167 |
-
"
|
| 168 |
-
"
|
| 169 |
-
"
|
| 170 |
-
"
|
| 171 |
-
"
|
| 172 |
-
"
|
| 173 |
-
"
|
| 174 |
-
"
|
| 175 |
-
"
|
| 176 |
-
"
|
| 177 |
-
"
|
| 178 |
-
"
|
| 179 |
-
"
|
| 180 |
-
"
|
| 181 |
-
"
|
| 182 |
-
"
|
| 183 |
-
"
|
| 184 |
"num_congested_cells": formats["orange"],
|
| 185 |
"num_cells": formats["orange"],
|
| 186 |
"num_cell_with_kpi": formats["orange"],
|
|
|
|
| 151 |
"site_config_band": formats["blue"],
|
| 152 |
"Longitude": formats["blue"],
|
| 153 |
"Latitude": formats["blue"],
|
| 154 |
+
# "name_l800": formats["beurre"],
|
| 155 |
+
# "name_l1800": formats["purple5"],
|
| 156 |
+
# "name_l2300": formats["purple6"],
|
| 157 |
+
# "name_l2600": formats["blue_light"],
|
| 158 |
+
# "name_l1800s": formats["gray"],
|
| 159 |
+
"prb_l800": formats["beurre"],
|
| 160 |
+
"prb_l1800": formats["beurre"],
|
| 161 |
+
"prb_l2300": formats["beurre"],
|
| 162 |
+
"prb_l2600": formats["beurre"],
|
| 163 |
+
"prb_l1800s": formats["beurre"],
|
| 164 |
+
"prb_l800_2nd": formats["purple5"],
|
| 165 |
+
"prb_l1800_2nd": formats["purple5"],
|
| 166 |
+
"prb_l2300_2nd": formats["purple5"],
|
| 167 |
+
"prb_l2600_2nd": formats["purple5"],
|
| 168 |
+
"prb_l1800s_2nd": formats["purple5"],
|
| 169 |
+
"act_ues_l800": formats["purple6"],
|
| 170 |
+
"act_ues_l1800": formats["purple6"],
|
| 171 |
+
"act_ues_l2300": formats["purple6"],
|
| 172 |
+
"act_ues_l2600": formats["purple6"],
|
| 173 |
+
"act_ues_l1800s": formats["purple6"],
|
| 174 |
+
"dl_thp_l800": formats["blue_light"],
|
| 175 |
+
"dl_thp_l1800": formats["blue_light"],
|
| 176 |
+
"dl_thp_l2300": formats["blue_light"],
|
| 177 |
+
"dl_thp_l2600": formats["blue_light"],
|
| 178 |
+
"dl_thp_l1800s": formats["blue_light"],
|
| 179 |
+
"ul_thp_l800": formats["gray"],
|
| 180 |
+
"ul_thp_l1800": formats["gray"],
|
| 181 |
+
"ul_thp_l2300": formats["gray"],
|
| 182 |
+
"ul_thp_l2600": formats["gray"],
|
| 183 |
+
"ul_thp_l1800s": formats["gray"],
|
| 184 |
"num_congested_cells": formats["orange"],
|
| 185 |
"num_cells": formats["orange"],
|
| 186 |
"num_cell_with_kpi": formats["orange"],
|