Commit 2fcdc39f authored by SHRADDHEYA SHENDRE's avatar SHRADDHEYA SHENDRE

Adding collab-filter.py (SH)

parents
#!/usr/bin/python3
import csv
file = open('movie-ratings.csv')
readerObj = csv.reader(file)
data = list(readerObj)
userFile = open('user_preference.csv')
userObj = csv.reader(userFile)
userRatings = list(userObj)
userRatings[1].insert(0,"MyUser")
data.append(userRatings[1])
#Data is complete at this point
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment