ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 81 - Professional Data Engineer discussion

Report
Export

If a dataset contains rows with individual people and columns for year of birth, country, and income, how many of the columns are continuous and how many are categorical?

A.
1 continuous and 2 categorical
Answers
A.
1 continuous and 2 categorical
B.
3 categorical
Answers
B.
3 categorical
C.
3 continuous
Answers
C.
3 continuous
D.
2 continuous and 1 categorical
Answers
D.
2 continuous and 1 categorical
Suggested answer: D

Explanation:

The columns can be grouped into two typesócategorical and continuous columns:

A column is called categorical if its value can only be one of the categories in a finite set. For example, the native country of a person (U.S., India, Japan, etc.) or the education level (high school, college, etc.) are categorical columns.

A column is called continuous if its value can be any numerical value in a continuous range. For example, the capital gain of a person (e.g. $14,084) is a continuous column.

Year of birth and income are continuous columns. Country is a categorical column.

You could use bucketization to turn year of birth and/or income into categorical features, but the raw columns are continuous.

Reference: https://www.tensorflow.org/tutorials/wide#reading_the_census_data

asked 18/09/2024
Bob Xiong
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first