You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql_cmd = "CREATE TABLE data (user_id integer NOT NULL, movie_id integer NOT NULL, date integer NOT NULL, rating float, index integer, PRIMARY KEY (user_id, movie_id));"
cursor.execute(sql_cmd)
print "Table data created"
def insert_data_table(cursor):
input_filename = 'all.dta'
f = open('../mu/' + input_filename, 'r')
i = 0
sql_cmd = "INSERT INTO data (user_id, movie_id, date, rating) VALUES "