DataFrameNaFunctions — Working With Missing Data
DataFrameNaFunctions is used to work with missing data in a structured query (a DataFrame).
| Method | Description | ||
|---|---|---|---|
|
|||
|
|||
|
DataFrameNaFunctions is available using na untyped transformation.
|
1 2 3 4 5 6 |
val q: DataFrame = ... q.na |
convertToDouble Internal Method
|
1 2 3 4 5 |
convertToDouble(v: Any): Double |
convertToDouble…FIXME
|
Note
|
convertToDouble is used when…FIXME
|
drop Method
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
drop(): DataFrame drop(cols: Array[String]): DataFrame drop(minNonNulls: Int): DataFrame drop(minNonNulls: Int, cols: Array[String]): DataFrame drop(minNonNulls: Int, cols: Seq[String]): DataFrame drop(cols: Seq[String]): DataFrame drop(how: String): DataFrame drop(how: String, cols: Array[String]): DataFrame drop(how: String, cols: Seq[String]): DataFrame |
drop…FIXME
fill Method
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
fill(value: Boolean): DataFrame fill(value: Boolean, cols: Array[String]): DataFrame fill(value: Boolean, cols: Seq[String]): DataFrame fill(value: Double): DataFrame fill(value: Double, cols: Array[String]): DataFrame fill(value: Double, cols: Seq[String]): DataFrame fill(value: Long): DataFrame fill(value: Long, cols: Array[String]): DataFrame fill(value: Long, cols: Seq[String]): DataFrame fill(valueMap: Map[String, Any]): DataFrame fill(value: String): DataFrame fill(value: String, cols: Array[String]): DataFrame fill(value: String, cols: Seq[String]): DataFrame |
fill…FIXME
fillCol Internal Method
|
1 2 3 4 5 |
fillCol[T](col: StructField, replacement: T): Column |
fillCol…FIXME
|
Note
|
fillCol is used when…FIXME
|
fillMap Internal Method
|
1 2 3 4 5 |
fillMap(values: Seq[(String, Any)]): DataFrame |
fillMap…FIXME
|
Note
|
fillMap is used when…FIXME
|
fillValue Internal Method
|
1 2 3 4 5 |
fillValue[T](value: T, cols: Seq[String]): DataFrame |
fillValue…FIXME
|
Note
|
fillValue is used when…FIXME
|
replace0 Internal Method
|
1 2 3 4 5 |
replace0[T](cols: Seq[String], replacement: Map[T, T]): DataFrame |
replace0…FIXME
|
Note
|
replace0 is used when…FIXME
|
spark技术分享