DataFrameNaFunctions.Replace 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
| Replace(IEnumerable<String>, IDictionary<Boolean,Boolean>) | Replaces values matching keys in  | 
| Replace(IEnumerable<String>, IDictionary<Double,Double>) | Replaces values matching keys in  | 
| Replace(IEnumerable<String>, IDictionary<String,String>) | Replaces values matching keys in  | 
| Replace(String, IDictionary<Boolean,Boolean>) | Replaces values matching keys in  | 
| Replace(String, IDictionary<Double,Double>) | Replaces values matching keys in  | 
| Replace(String, IDictionary<String,String>) | Replaces values matching keys in  | 
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.DataFramePublic Function Replace (columnNames As IEnumerable(Of String), replacement As IDictionary(Of Boolean, Boolean)) As DataFrameParameters
- 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.DataFramePublic Function Replace (columnNames As IEnumerable(Of String), replacement As IDictionary(Of Double, Double)) As DataFrameParameters
- 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.DataFramePublic Function Replace (columnNames As IEnumerable(Of String), replacement As IDictionary(Of String, String)) As DataFrameParameters
- 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.DataFramePublic Function Replace (columnName As String, replacement As IDictionary(Of Boolean, Boolean)) As DataFrameParameters
- 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.DataFramePublic Function Replace (columnName As String, replacement As IDictionary(Of Double, Double)) As DataFrameParameters
- 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.DataFramePublic Function Replace (columnName As String, replacement As IDictionary(Of String, String)) As DataFrameParameters
- 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