Commit 16cadb6c authored by 舒皓月's avatar 舒皓月

20200518_2

parent dac3f49a
...@@ -320,6 +320,15 @@ class AUCMonitor: ...@@ -320,6 +320,15 @@ class AUCMonitor:
else: else:
self.mongo_df = pd.read_csv(self.save_path + 'data/mongo_data.csv') self.mongo_df = pd.read_csv(self.save_path + 'data/mongo_data.csv')
self.mongo_df['applied_type'] = self.mongo_df['wf_loan_type'].apply(func_0)
self.mongo_df['applied_at'] = self.mongo_df['wf_created_at']
self.mongo_df['applied_from'] = self.mongo_df['wf_biz_channel']
self.mongo_df['applied_channel'] = self.mongo_df['applied_channel_cn']
del self.mongo_df['wf_loan_type']
del self.mongo_df['wf_created_at']
del self.mongo_df['wf_biz_channel']
del self.mongo_df['applied_channel_cn']
self.mongo_df = self.mongo_df.loc[self.mongo_df['applied_type'].notna()] self.mongo_df = self.mongo_df.loc[self.mongo_df['applied_type'].notna()]
# 去除巧盼渠道. # 去除巧盼渠道.
self.mongo_df = self.mongo_df.loc[self.mongo_df['applied_channel'] != '巧盼API'] self.mongo_df = self.mongo_df.loc[self.mongo_df['applied_channel'] != '巧盼API']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment