Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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": {
Expand All @@ -690,7 +691,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down