diff --git a/lab-6-Personalize_your_Recommendations/personalize_sample_notebook.ipynb b/lab-6-Personalize_your_Recommendations/personalize_sample_notebook.ipynb index ee122f5..b24a7ae 100644 --- a/lab-6-Personalize_your_Recommendations/personalize_sample_notebook.ipynb +++ b/lab-6-Personalize_your_Recommendations/personalize_sample_notebook.ipynb @@ -110,10 +110,11 @@ "filename = \"DEMO-movie-lens-100k.csv\" # file in S3 that will hold our model training data\n", "data = data[data['RATING'] > 3.6] # keep only movies rated 3.6 and above\n", "data = data[['USER_ID', 'ITEM_ID', 'TIMESTAMP']] # select columns that match the columns in the schema below\n", - "data['TIMESTAMP'] = data['TIMESTAMP'] + 660833618 # make reviews end 1st April 2019 rather than 23rd April 1998\n", + "data['TIMESTAMP'] = data['TIMESTAMP'] + 705628800 # make reviews end 1st September 2020 rather than 23rd April 1998\n", "data.to_csv(filename, index=False)\n", "\n", - "boto3.Session().resource('s3').Bucket(bucket).Object(filename).upload_file(filename)" + "boto3.Session().resource('s3').Bucket(bucket).Object(filename).upload_file(filename)\n", + "data" ] }, { @@ -676,9 +677,9 @@ ], "metadata": { "kernelspec": { - "display_name": "conda_python3", + "display_name": "Python 3", "language": "python", - "name": "conda_python3" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -690,7 +691,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.5" + "version": "3.8.5" } }, "nbformat": 4,