DataFrameNaFunctions.Replace Method

Definition

Overloads

Replace(IEnumerable<String>, IDictionary<Boolean,Boolean>)

Replaces values matching keys in replacement map with the corresponding values.

Replace(IEnumerable<String>, IDictionary<Double,Double>)

Replaces values matching keys in replacement map with the corresponding values.

Replace(IEnumerable<String>, IDictionary<String,String>)

Replaces values matching keys in replacement map with the corresponding values.

Replace(String, IDictionary<Boolean,Boolean>)

Replaces values matching keys in replacement map with the corresponding values.

Replace(String, IDictionary<Double,Double>)

Replaces values matching keys in replacement map with the corresponding values.

Replace(String, IDictionary<String,String>)

Replaces values matching keys in replacement map with the corresponding values.

Replace(IEnumerable<String>, IDictionary<Boolean,Boolean>)

Replaces values matching keys in replacement map with the corresponding values.

public Microsoft.Spark.Sql.DataFrame Replace (System.Collections.Generic.IEnumerable<string> columnNames, System.Collections.Generic.IDictionary<bool,bool> replacement);
member this.Replace : seq<string> * System.Collections.Generic.IDictionary<bool, bool> -> Microsoft.Spark.Sql.DataFrame
Public Function Replace (columnNames As IEnumerable(Of String), replacement As IDictionary(Of Boolean, Boolean)) As DataFrame

Parameters

columnNames
IEnumerable<String>

list of columns to apply the value replacement.

replacement
IDictionary<Boolean,Boolean>

Map that stores the replacement values

Returns

DataFrame object

Applies to

Replace(IEnumerable<String>, IDictionary<Double,Double>)

Replaces values matching keys in replacement map with the corresponding values.

public Microsoft.Spark.Sql.DataFrame Replace (System.Collections.Generic.IEnumerable<string> columnNames, System.Collections.Generic.IDictionary<double,double> replacement);
member this.Replace : seq<string> * System.Collections.Generic.IDictionary<double, double> -> Microsoft.Spark.Sql.DataFrame
Public Function Replace (columnNames As IEnumerable(Of String), replacement As IDictionary(Of Double, Double)) As DataFrame

Parameters

columnNames
IEnumerable<String>

Name of the column to apply the value replacement. If col is "*", replacement is applied on all string, numeric or boolean columns.

replacement
IDictionary<Double,Double>

Map that stores the replacement values

Returns

DataFrame object

Applies to

Replace(IEnumerable<String>, IDictionary<String,String>)

Replaces values matching keys in replacement map with the corresponding values.

public Microsoft.Spark.Sql.DataFrame Replace (System.Collections.Generic.IEnumerable<string> columnNames, System.Collections.Generic.IDictionary<string,string> replacement);
member this.Replace : seq<string> * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Spark.Sql.DataFrame
Public Function Replace (columnNames As IEnumerable(Of String), replacement As IDictionary(Of String, String)) As DataFrame

Parameters

columnNames
IEnumerable<String>

list of columns to apply the value replacement.

replacement
IDictionary<String,String>

Map that stores the replacement values

Returns

DataFrame object

Applies to

Replace(String, IDictionary<Boolean,Boolean>)

Replaces values matching keys in replacement map with the corresponding values.

public Microsoft.Spark.Sql.DataFrame Replace (string columnName, System.Collections.Generic.IDictionary<bool,bool> replacement);
member this.Replace : string * System.Collections.Generic.IDictionary<bool, bool> -> Microsoft.Spark.Sql.DataFrame
Public Function Replace (columnName As String, replacement As IDictionary(Of Boolean, Boolean)) As DataFrame

Parameters

columnName
String

Name of the column to apply the value replacement. If col is "*", replacement is applied on all string, numeric or boolean columns.

replacement
IDictionary<Boolean,Boolean>

Map that stores the replacement values

Returns

DataFrame object

Applies to

Replace(String, IDictionary<Double,Double>)

Replaces values matching keys in replacement map with the corresponding values.

public Microsoft.Spark.Sql.DataFrame Replace (string columnName, System.Collections.Generic.IDictionary<double,double> replacement);
member this.Replace : string * System.Collections.Generic.IDictionary<double, double> -> Microsoft.Spark.Sql.DataFrame
Public Function Replace (columnName As String, replacement As IDictionary(Of Double, Double)) As DataFrame

Parameters

columnName
String

Name of the column to apply the value replacement. If col is "*", replacement is applied on all string, numeric or boolean columns.

replacement
IDictionary<Double,Double>

Map that stores the replacement values

Returns

DataFrame object

Applies to

Replace(String, IDictionary<String,String>)

Replaces values matching keys in replacement map with the corresponding values.

public Microsoft.Spark.Sql.DataFrame Replace (string columnName, System.Collections.Generic.IDictionary<string,string> replacement);
member this.Replace : string * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Spark.Sql.DataFrame
Public Function Replace (columnName As String, replacement As IDictionary(Of String, String)) As DataFrame

Parameters

columnName
String

Name of the column to apply the value replacement. If col is "*", replacement is applied on all string, numeric or boolean columns.

replacement
IDictionary<String,String>

Map that stores the replacement values

Returns

DataFrame object

Applies to