-
-
Save amankharwal/c53b08168c865277678c3e5faa2b14d1 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
import pandas as pd | |
import numpy as np | |
import math | |
import re | |
from scipy.sparse import csr_matrix | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
from surprise import Reader, Dataset, SVD | |
sns.set_style("darkgrid") | |
# Skip date | |
df1 = pd.read_csv('combined_data_1.txt', header = None, names = ['Cust_Id', 'Rating'], usecols = [0,1]) | |
df1['Rating'] = df1['Rating'].astype(float) | |
df = df1 | |
df.index = np.arange(0,len(df)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment