Megosztás a következőn keresztül:


DataFrameNaFunctions.Fill Method

Definition

Overloads

Fill(String, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified string columns. If a specified column is not a string column, it is ignored.

Fill(Int64, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified numeric columns. If a specified column is not a numeric column, it is ignored.

Fill(Double, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified numeric columns. If a specified column is not a numeric column, it is ignored.

Fill(Boolean, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified boolean columns. If a specified column is not a boolean column, it is ignored.

Fill(String)

Returns a new DataFrame that replaces null or NaN values in numeric columns with value.

Fill(Int64)

Returns a new DataFrame that replaces null or NaN values in numeric columns with value.

Fill(Double)

Returns a new DataFrame that replaces null or NaN values in numeric columns with value.

Fill(IDictionary<String,String>)

Returns a new DataFrame that replaces null values.

Fill(IDictionary<String,Int64>)

Returns a new DataFrame that replaces null values.

Fill(IDictionary<String,Int32>)

Returns a new DataFrame that replaces null values.

Fill(IDictionary<String,Double>)

Returns a new DataFrame that replaces null values.

Fill(IDictionary<String,Boolean>)

Returns a new DataFrame that replaces null values.

Fill(Boolean)

Returns a new DataFrame that replaces null values in boolean columns with value.

Fill(String, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified string columns. If a specified column is not a string column, it is ignored.

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

Parameters

value
String

Value to replace with

columnNames
IEnumerable<String>

Column names

Returns

DataFrame object

Applies to

Fill(Int64, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified numeric columns. If a specified column is not a numeric column, it is ignored.

public Microsoft.Spark.Sql.DataFrame Fill (long value, System.Collections.Generic.IEnumerable<string> columnNames);
member this.Fill : int64 * seq<string> -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (value As Long, columnNames As IEnumerable(Of String)) As DataFrame

Parameters

value
Int64

Value to replace with

columnNames
IEnumerable<String>

Column names

Returns

DataFrame object

Applies to

Fill(Double, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified numeric columns. If a specified column is not a numeric column, it is ignored.

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

Parameters

value
Double

Value to replace with

columnNames
IEnumerable<String>

Column names

Returns

DataFrame object

Applies to

Fill(Boolean, IEnumerable<String>)

Returns a new DataFrame that replaces null or NaN values in specified boolean columns. If a specified column is not a boolean column, it is ignored.

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

Parameters

value
Boolean

Value to replace with

columnNames
IEnumerable<String>

Column names

Returns

DataFrame object

Applies to

Fill(String)

Returns a new DataFrame that replaces null or NaN values in numeric columns with value.

public Microsoft.Spark.Sql.DataFrame Fill (string value);
member this.Fill : string -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (value As String) As DataFrame

Parameters

value
String

Value to replace with

Returns

DataFrame object

Applies to

Fill(Int64)

Returns a new DataFrame that replaces null or NaN values in numeric columns with value.

public Microsoft.Spark.Sql.DataFrame Fill (long value);
member this.Fill : int64 -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (value As Long) As DataFrame

Parameters

value
Int64

Value to replace with

Returns

DataFrame object

Applies to

Fill(Double)

Returns a new DataFrame that replaces null or NaN values in numeric columns with value.

public Microsoft.Spark.Sql.DataFrame Fill (double value);
member this.Fill : double -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (value As Double) As DataFrame

Parameters

value
Double

Value to replace with

Returns

DataFrame object

Applies to

Fill(IDictionary<String,String>)

Returns a new DataFrame that replaces null values.

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

Parameters

valueMap
IDictionary<String,String>

Values to replace null values

Returns

DataFrame object

Remarks

The key of the map is the column name, and the value of the map is the replacement value.

Applies to

Fill(IDictionary<String,Int64>)

Returns a new DataFrame that replaces null values.

public Microsoft.Spark.Sql.DataFrame Fill (System.Collections.Generic.IDictionary<string,long> valueMap);
member this.Fill : System.Collections.Generic.IDictionary<string, int64> -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (valueMap As IDictionary(Of String, Long)) As DataFrame

Parameters

valueMap
IDictionary<String,Int64>

Values to replace null values

Returns

DataFrame object

Remarks

The key of the map is the column name, and the value of the map is the replacement value.

Applies to

Fill(IDictionary<String,Int32>)

Returns a new DataFrame that replaces null values.

public Microsoft.Spark.Sql.DataFrame Fill (System.Collections.Generic.IDictionary<string,int> valueMap);
member this.Fill : System.Collections.Generic.IDictionary<string, int> -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (valueMap As IDictionary(Of String, Integer)) As DataFrame

Parameters

valueMap
IDictionary<String,Int32>

Values to replace null values

Returns

DataFrame object

Remarks

The key of the map is the column name, and the value of the map is the replacement value.

Applies to

Fill(IDictionary<String,Double>)

Returns a new DataFrame that replaces null values.

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

Parameters

valueMap
IDictionary<String,Double>

Values to replace null values

Returns

DataFrame object

Remarks

The key of the map is the column name, and the value of the map is the replacement value.

Applies to

Fill(IDictionary<String,Boolean>)

Returns a new DataFrame that replaces null values.

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

Parameters

valueMap
IDictionary<String,Boolean>

Values to replace null values

Returns

DataFrame object

Remarks

The key of the map is the column name, and the value of the map is the replacement value.

Applies to

Fill(Boolean)

Returns a new DataFrame that replaces null values in boolean columns with value.

public Microsoft.Spark.Sql.DataFrame Fill (bool value);
member this.Fill : bool -> Microsoft.Spark.Sql.DataFrame
Public Function Fill (value As Boolean) As DataFrame

Parameters

value
Boolean

Value to replace with

Returns

DataFrame object

Applies to