Created
February 2, 2021 15:46
-
-
Save dhananjaychaudhari26/9f031d0dabe7f3d8224f37433dda3770 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 | |
new_trans_df = new_trans_df.merge(merchant_df,on='merchant_id',how='left')# perform merge operation with new transactions data based on merchant_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment