Back to the lessonPreparing the printout…

Fundamental of Machine Learning · Module 1: Data Preparation and Model Foundations

1.5 Feature Types

[video] /api/lesson-media/videos/9b417aa2-5e9f-4ae3-a9db-2a3b7f03f372-1794614983977-89099ab9beb7ac84.mp4

[markdown] content available only on the platform

[markdown] content available only on the platform

Flashcards · 1.5 Feature Types

Feature — A column of data that describes something about each example.

square_feet in a housing table.

Numerical feature — A feature whose values are measured quantities represented by numbers.

Age, income, temperature.

Categorical feature — A feature whose values are categories or labels rather than measured amounts.

City name, product category.

Discrete feature — A numerical feature that takes only separate values, usually whole numbers.

Number of bedrooms: 1, 2, 3.

Continuous feature — A numerical feature that can take any value within a range, including decimals.

Height: 172.85 cm.

Nominal feature — A categorical feature whose categories have no natural order.

Hanoi, Ho Chi Minh City, Hue.

Ordinal feature — A categorical feature whose categories have a natural order or ranking.

Sizes S < M < L.

Boolean feature — A categorical feature with only two possible values.

has_garden: Yes or No.

df.select_dtypes() — pandas method that selects columns by storage type; it cannot tell you a column's real meaning.

df.select_dtypes("number").columns

Fundamental of Machine Learning · 1.5 Feature Types · printed on November 20, 2026