소스 검색

Merge branch 'yifan' of ASJ_ADS/sync_amz_data into master

yifan_huang96 1 년 전
부모
커밋
affca50b83
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sync_amz_data/public/sp_api_client.py

+ 2 - 2
sync_amz_data/public/sp_api_client.py

@@ -571,11 +571,11 @@ class SpApiRequest:
                 # print("需要关注数据(是否异常):",len(temp),temp.to_numpy().tolist()) if len(temp)>1 else 1
                 if len(temp)>1:
                     # temp = temp.head(1).to_numpy().tolist()
-                    df_data = df_data.append(temp_df, ignore_index=True)
+                    df_data = pd.concat((df_data,temp_df),ignore_index=True) #df_data.append(temp_df, ignore_index=True)
                     delete_list.append((seller_id, marketplace_id, sku, listing_id, product_id))
                 # print(len(temp))
                 elif len(temp)==0:
-                    df_data = df_data.append(temp_df,ignore_index=True)
+                    df_data = pd.concat((df_data,temp_df),ignore_index=True)
                     delete_list.append((seller_id,marketplace_id,sku,listing_id,product_id))
                 row += 1
             print("判断不同数据条数",len(delete_list))