Created
July 28, 2019 18:27
-
-
Save prateekjoshi565/15891ccc6299c80fe717548bcaed42d8 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
# list to capture purchase history of the customers | |
purchases_val = [] | |
# populate the list with the product codes | |
for i in tqdm(validation_df['CustomerID'].unique()): | |
temp = validation_df[validation_df["CustomerID"] == i]["StockCode"].tolist() | |
purchases_val.append(temp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment