def test():
#??????????????????????
before_2_days_feature = pd.read_csv(one_before_2_days_feature_path)
before_4_days_feature = pd.read_csv(one_before_4_days_feature_path)
before_6_days_feature = pd.read_csv(one_before_6_days_feature_path)
before_8_days_feature = pd.read_csv(one_before_8_days_feature_path)
# ????
print u'??????????',before_2_days_feature.shape
print u'??????????',before_4_days_feature.shape
print u'??????????',before_6_days_feature.shape
print u'??????????',before_8_days_feature.shape
# ????????????
new_data_df1 = pd.merge(before_2_days_feature, before_4_days_feature, on=['user_id','sku_id'], how='outer')
new_data_df2 = pd.merge(before_6_days_feature, before_8_days_feature, on=['user_id','sku_id'], how='outer')
new_data_df = pd.merge(new_data_df1, new_data_df2, on=['user_id','sku_id'], how='outer')
评论列表
文章目录