Share via


PrimitiveDataFrameColumn<T>.Clamp(T, T, Boolean) Method

Definition

Clamps values beyond the specified thresholds

public Microsoft.Data.Analysis.PrimitiveDataFrameColumn<T> Clamp (T min, T max, bool inPlace = false);
override this.Clamp : 'T * 'T * bool -> Microsoft.Data.Analysis.PrimitiveDataFrameColumn<'T (requires 'T : struct)>
Public Function Clamp (min As T, max As T, Optional inPlace As Boolean = false) As PrimitiveDataFrameColumn(Of T)

Parameters

min
T

Minimum value. All values below this threshold will be set to it

max
T

Maximum value. All values above this threshold will be set to it

inPlace
Boolean

Indicates if the operation should be performed in place

Returns

Applies to