DavMelchi commited on
Commit
8ccf333
·
1 Parent(s): ae5e7a8

usedMobileAllocation instead of BTS ID for MAL ID in BTS

Browse files
Files changed (1) hide show
  1. queries/process_gsm.py +4 -1
queries/process_gsm.py CHANGED
@@ -13,6 +13,7 @@ BTS_COLUMNS = [
13
  "BSC",
14
  "BCF",
15
  "BTS",
 
16
  "code",
17
  "plmnPermitted",
18
  "frequencyBandInUse",
@@ -84,7 +85,9 @@ def process_gsm_data(file_path: str):
84
  df_bts["code"] = df_bts["name"].str.split("_").str[0].astype(int)
85
  df_bts["Region"] = df_bts["name"].str.split("_").str[1]
86
  df_bts["ID_BTS"] = df_bts[["BSC", "BCF", "BTS"]].astype(str).apply("_".join, axis=1)
87
- df_bts["ID_MAL"] = df_bts[["BSC", "BTS"]].astype(str).apply("_".join, axis=1)
 
 
88
  df_bts["BSIC"] = (
89
  df_bts[["bsIdentityCodeNCC", "bsIdentityCodeBCC"]]
90
  .astype(str)
 
13
  "BSC",
14
  "BCF",
15
  "BTS",
16
+ "usedMobileAllocation",
17
  "code",
18
  "plmnPermitted",
19
  "frequencyBandInUse",
 
85
  df_bts["code"] = df_bts["name"].str.split("_").str[0].astype(int)
86
  df_bts["Region"] = df_bts["name"].str.split("_").str[1]
87
  df_bts["ID_BTS"] = df_bts[["BSC", "BCF", "BTS"]].astype(str).apply("_".join, axis=1)
88
+ df_bts["ID_MAL"] = (
89
+ df_bts[["BSC", "usedMobileAllocation"]].astype(str).apply("_".join, axis=1)
90
+ )
91
  df_bts["BSIC"] = (
92
  df_bts[["bsIdentityCodeNCC", "bsIdentityCodeBCC"]]
93
  .astype(str)