DataFlow.TrimString Method

Definition

Trims string values in specific columns.

public Microsoft.DataPrep.Common.DataFlow TrimString(Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector columns, bool trimLeft = true, bool trimRight = true, Microsoft.DataPrep.Common.TrimType trimType = Microsoft.DataPrep.Common.TrimType.Whitespace, string customCharacters = "");
member this.TrimString : Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector * bool * bool * Microsoft.DataPrep.Common.TrimType * string -> Microsoft.DataPrep.Common.DataFlow

Parameters

columns
Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector

The source columns.

trimLeft
Boolean

Whether to trim from the beginning.

trimRight
Boolean

Whether to trim from the end.

trimType
TrimType

Whether to trim whitespace or custom characters.

customCharacters
String

The characters to trim.

Returns

Applies to