DataFlow.ToBool Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ToBool(ColumnsSelector, List<String>, List<String>, MismatchAsOption) |
Converts the values in the specified columns to booleans. |
| ToBool(String, List<String>, List<String>, MismatchAsOption) |
Converts the values in the specified columns to booleans. |
| ToBool(String[], List<String>, List<String>, MismatchAsOption) |
Converts the values in the specified columns to booleans. |
ToBool(ColumnsSelector, List<String>, List<String>, MismatchAsOption)
Converts the values in the specified columns to booleans.
public Microsoft.DataPrep.Common.DataFlow ToBool(Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector columns, System.Collections.Generic.List<string> trueValues, System.Collections.Generic.List<string> falseValues, Microsoft.DataPrep.Common.MismatchAsOption mismatchAs = Microsoft.DataPrep.Common.MismatchAsOption.AsError);
member this.ToBool : Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector * System.Collections.Generic.List<string> * System.Collections.Generic.List<string> * Microsoft.DataPrep.Common.MismatchAsOption -> Microsoft.DataPrep.Common.DataFlow
Public Function ToBool (columns As ColumnsSelector, trueValues As List(Of String), falseValues As List(Of String), Optional mismatchAs As MismatchAsOption = Microsoft.DataPrep.Common.MismatchAsOption.AsError) As DataFlow
Parameters
- columns
- Microsoft.DPrep.Engine.PropertiesSystem.ColumnsSelector
The source columns.
- mismatchAs
- MismatchAsOption
How to treat values that don't match the values in the true or false values lists.
Returns
Applies to
ToBool(String, List<String>, List<String>, MismatchAsOption)
Converts the values in the specified columns to booleans.
public Microsoft.DataPrep.Common.DataFlow ToBool(string columnName, System.Collections.Generic.List<string> trueValues, System.Collections.Generic.List<string> falseValues, Microsoft.DataPrep.Common.MismatchAsOption mismatchAs = Microsoft.DataPrep.Common.MismatchAsOption.AsError);
member this.ToBool : string * System.Collections.Generic.List<string> * System.Collections.Generic.List<string> * Microsoft.DataPrep.Common.MismatchAsOption -> Microsoft.DataPrep.Common.DataFlow
Public Function ToBool (columnName As String, trueValues As List(Of String), falseValues As List(Of String), Optional mismatchAs As MismatchAsOption = Microsoft.DataPrep.Common.MismatchAsOption.AsError) As DataFlow
Parameters
- columnName
- String
The source columns.
- mismatchAs
- MismatchAsOption
How to treat values that don't match the values in the true or false values lists.
Returns
Applies to
ToBool(String[], List<String>, List<String>, MismatchAsOption)
Converts the values in the specified columns to booleans.
public Microsoft.DataPrep.Common.DataFlow ToBool(string[] columnNames, System.Collections.Generic.List<string> trueValues, System.Collections.Generic.List<string> falseValues, Microsoft.DataPrep.Common.MismatchAsOption mismatchAs = Microsoft.DataPrep.Common.MismatchAsOption.AsError);
member this.ToBool : string[] * System.Collections.Generic.List<string> * System.Collections.Generic.List<string> * Microsoft.DataPrep.Common.MismatchAsOption -> Microsoft.DataPrep.Common.DataFlow
Public Function ToBool (columnNames As String(), trueValues As List(Of String), falseValues As List(Of String), Optional mismatchAs As MismatchAsOption = Microsoft.DataPrep.Common.MismatchAsOption.AsError) As DataFlow
Parameters
- columnNames
- String[]
The source columns.
- mismatchAs
- MismatchAsOption
How to treat values that don't match the values in the true or false values lists.