FAQ: Project: Board Slides for FoodWheel - Customer Types

This community-built FAQ covers the “Customer Types” exercise from the lesson “Project: Board Slides for FoodWheel”.

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

Data Science

FAQs on the exercise Customer Types

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

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!

Is the .values method necessary for Histograms? It wasn’t covered in the Data Science Path and I seem to be able to get the same graph using:

         range=(0, 200),
plt.xlabel('Total Spent')
plt.ylabel("Number of Customers")
plt.title('Customer Expenditure Over 6 Months')

I can’t complete this exercise. i think that the problem is that codeacademy don’t load the database necessary to successfully run my code.


`import codecademylib
from matplotlib import pyplot as plt
import pandas as pd

orders = pd.read_csv(‘orders.csv’)`
it worked for me


There’s no explanation of what .values does in the Data Science course. I don’t understand why it’s necessary and this awful platform does nothing to help you.


From what I’ve gathered adding .values converts a series in a data frame to a list of values (array).

Though no real explanation was given, this method was used in exercise 2 (What cuisines does FoodWheel offer) to get the values from a series and use them as labels in the pie chart.

Hey can someone explain why we have to select the price values for the hist?
Since I thought that it was already included in the customer_amount variable

plt.hist(customer_amount.price.values, range=(0, 200), bins=40)

You do not have to specify .values. I’m not sure why this was included in the Solution, since you can remove it and generate the same graph.

I also noticed that you can’t use

plt.xlim([0, 200])

to set the range, even though it accomplishes the task. Oh well.

1 Like

It’s a shame that I’m finding so many errors or inconsistencies within the data science career path lately. Up until recently it has been great, however now I’m finding some really discouraging issues including but not limited to the following:

  1. some critical info has not been taught to complete the given exercise or is (for the first time) mentioned in a “hint” for that exercise.
  2. if there is a different (correct) way to write the code than what is expected in the exercise, the parser rejects the input as invalid code – different than sending a simple message to the user that an alternate input syntax is desired.
  3. inconsistencies with having to import libraries at the start of the exercise

Very frustrating when trying to learn!


I was wondering if anyone else was having the same problem with .values(). It seems that we all are!

I didnt seem to need .values. This code worked fine for me;

plt.hist(customer_amount.price, bins = 40, range = (0, 200))
plt.xlabel(‘Total Spent’)
plt.ylabel(‘Number of Customers’)
plt.title(‘Customer Spend’)

I totally get you. I’ve noticed several inconsistencies as well.

1 Like

Is it just me or did anyone else not see the resulting graph even with plt.show()?