CompTIA DataX DY0-001 (V1) Practice Question

A data scientist is developing a customer churn prediction model. The source data is a long-format transactional table with the columns customer_id, event_timestamp, and event_type (e.g., 'page_view', 'add_to_cart', 'purchase'). For the model, the data scientist needs to create a feature matrix where each row represents a single customer_id, and the columns represent the total count of each unique event_type for that customer.

Which data transformation technique should the data scientist apply to reshape the data into this required wide-format feature matrix?

  • Pivoting the table with customer_id as the index, event_type as the columns, and a count aggregation function.

  • Applying one-hot encoding to the event_type column.

  • Binning the event_timestamp column into time-based categories.

  • Normalizing the customer_id and event_type columns.

CompTIA DataX DY0-001 (V1)
Modeling, Analysis, and Outcomes
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

SAVE $64
$529.00 $465.00
Bash, the Crucial Exams Chat Bot
AI Bot