Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed SQLAlchemy Basics!
You have completed SQLAlchemy Basics!
Preview
Clean the data imported from the CSV file for entry into the database.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
let's create a variable
called date = clean_date,
0:00
and we're going to need
to pass in our date,
0:01
which if we remember I'll
scroll a little bit 0, 1, 2.
0:05
It will be item number two in the row.
0:11
So row 2, well, it's the third item,
I mean, but index 012.
0:14
Cool, and we know we aren't gonna have
to do anything with title and authors.
0:20
Let's go ahead and do this now.
0:24
title =row[0], and
0:25
author = row[1].
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up