juanmartip95 commited on
Commit
f7d18eb
1 Parent(s): d44530c

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -56,11 +56,11 @@ def load_and_preprocess_data():
56
 
57
  # Add the categorical index to the starting dataframe
58
  #df["CustomerIndex"] = user_idx
59
- merged_df["ProductIndex"] = product_idx
60
  # Merging both DataFrames based on respective common columns
61
  merged_df = pd.merge(df, df_users[['User-ID', 'Location', 'Age']], on='User-ID', how='left')
62
  merged_df = pd.merge(merged_df, df_books[['ISBN', 'Book-Title', 'Book-Author', 'Year-Of-Publication']], on='ISBN', how='left')
63
-
64
 
65
 
66
 
 
56
 
57
  # Add the categorical index to the starting dataframe
58
  #df["CustomerIndex"] = user_idx
59
+
60
  # Merging both DataFrames based on respective common columns
61
  merged_df = pd.merge(df, df_users[['User-ID', 'Location', 'Age']], on='User-ID', how='left')
62
  merged_df = pd.merge(merged_df, df_books[['ISBN', 'Book-Title', 'Book-Author', 'Year-Of-Publication']], on='ISBN', how='left')
63
+ merged_df["ProductIndex"] = product_idx
64
 
65
 
66