liqian 2 년 전
부모
커밋
ef0f3abec3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      ad_threshold_auto_update.py

+ 4 - 1
ad_threshold_auto_update.py

@@ -84,7 +84,10 @@ def get_threshold_record_new_by_uv(ad_abtest_abcode_config, feature_df, threshol
                 continue
             update_range = threshold_update_mapping.get(ab_test_group)
             # 获取对应组的当前uv
-            current_uv = temp_df[temp_df['分组'] == ab_test_group]['广告uv'].values[0]
+            try:
+                current_uv = temp_df[temp_df['分组'] == ab_test_group]['广告uv'].values[0]
+            except Exception as e:
+                continue
             # 计算uv差值
             uv_differ = current_uv - target_uv
             if abs(uv_differ) < not_update: