zhangbo 1 년 전
부모
커밋
ddf567f8c3
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      alg_recsys_recall_4h_region_trend.py

+ 5 - 1
alg_recsys_recall_4h_region_trend.py

@@ -45,10 +45,14 @@ def check_data(project, table, partition) -> int:
 
 def get_table_data(project, table, partition) -> list[dict]:
     """获取全部分区数据"""
+
     records = get_data_from_odps(date=partition, project=project, table=table)
+    print(records)
+    print(len(records))
+    print(type(records))
+
     data = []
     for record in records:
-        print(record)
         tmp = {}
         for col_name in ["region", "videoid_array_sum", "videoid_array_avg"]:
             tmp[col_name] = record[col_name]