Features and Labels
The features (written X) are the facts the model looks at. The label or target (written y) is the answer it should predict. X is always a table with one row per example and one column per feature (2D). y is a single column (1D).
With a Pandas table, pick the feature columns for X and the answer column for y.
Examplepython
Quick check
Which of these is the label in a model that predicts a house price?
Your turn: write the code
Take every column except 'price' as the features and print their shape.
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.