Column.clip

Series clip(T)(T lower, T upper)

Clips to the inclusive [lower, upper] bounds (ADR-2026-10-23-08): numeric kinds; bounds cast to the dtype (out-of-range bounds fail fast); **reversed bounds throw before any work**; nulls and NaN pass through untouched.

Parameters

lowerthe lower bound
upperthe upper bound

Returns

the clipped Series.

Throws

DataFrameException on non-numeric kinds, bounds that do

not fit the dtype, and lower > upper.