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 Practice Cleaning Data!
You have completed Practice Cleaning Data!
Tackle the data cleaning challenge using your knowledge so far.
If you're unfamiliar with the import statement at the top of app.py, no worries, this will be covered in more detail later.
In this case, from data import data is simply bringing something into your file so you can use it. More specifically, it means: “from a file named data.py (which is in the same folder as app.py), import the variable called data.”
Here, data is the name given to a list of dictionaries that contains all the values you'll be working with in the challenge. By importing it, the list is made available inside app.py, so you can read from it and perform whatever cleaning or transformations are needed without having to define it yourself.
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
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