FAQ: Creating, Loading, and Selecting Data with Pandas - Review

This community-built FAQ covers the “Review” exercise from the lesson “Creating, Loading, and Selecting Data with Pandas”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Data Science

Data Analysis with Pandas

FAQs on the exercise Review

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

A couple of typos/mistakes in the lesson:

#2 asks to inspect the first 5 lines of the data. However, orders.head() is not accepted, only print(orders) is. The dataframe has more than 5 rows of data, so this is obviously not a correct answer. Further, the hints for #2 both assume that we want to look at the first 3 lines of the dataframe, which is also incorrect.

Thanks for your time

This error still occurs… orders.head(5) is not an acceptable answer…

You have to use print():

print(orders.head(5))

>id	first_name	last_name	email	shoe_type	shoe_material	shoe_color
0	54791	Rebecca	Lindsay	[email protected]	clogs	faux-leather	black
1	53450	Emily	Joyce	[email protected]	ballet flats	faux-leather	navy
2	91987	Joyce	Waller	[email protected]	sandles	fabric	black
3	14437	Justin	Erickson	[email protected]	clogs	faux-leather	red
4	79357	Andrew	Banks	AB4318@gma