Turn Spend Into a Band

Start with four pinned spend values. Two of them sit on the important edges: 30 starts the medium band, and 70 starts the high band. Use the rules row by row. The original spend column stays numeric, and the new spend_band column is a label you can group or filter later.

Turning a numeric column into an exact low, medium, or high band with pinned boundary rules.

highlighted = computed this step

Input numeric column

Start with 4 pinned spend values.

numeric input\text{numeric input}
Input Spend ColumncustomerspendA12B30C69D70

Exact band rules

Use exact boundaries: medium starts at 30, and high starts at 70.

exact band rules\text{exact band rules}
Exact Band Rulesbandrulelowspend < 30medium30 <= spend < 70high70 <= spend

Banded feature column

Apply the rules row by row to create spend_band.

banded feature\text{banded feature}
Banded Featurecustomerspendspend_bandA12lowB30mediumC69mediumD70high