Created
February 2, 2021 15:50
-
-
Save dhananjaychaudhari26/53ef38049919248f6f65923a9ab4b33a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merchant_df = load_merchant() # load merchants dataframe | |
merchant_df = aggregation_merchants(merchant_df)# perform agg on merchnats data | |
merchant_df.columns=['merchants_'+c if c!='merchant_id' else c for c in merchant_df.columns] # generate new column name for merchnats data | |
hist_trans_df = hist_trans_df.merge(merchant_df,on='merchant_id',how='left')# perform merge operation with historical transactions data based on merchant_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment