-
- Downloads
[SPARK-19732][SQL][PYSPARK] Add fill functions for nulls in bool fields of datasets
## What changes were proposed in this pull request? Allow fill/replace of NAs with booleans, both in Python and Scala ## How was this patch tested? Unit tests, doctests This PR is original work from me and I license this work to the Spark project Author: Ruben Berenguel Montoro <ruben@mostlymaths.net> Author: Ruben Berenguel <ruben@mostlymaths.net> Closes #18164 from rberenguel/SPARK-19732-fillna-bools.
Showing
- python/pyspark/sql/dataframe.py 19 additions, 4 deletionspython/pyspark/sql/dataframe.py
- python/pyspark/sql/tests.py 26 additions, 8 deletionspython/pyspark/sql/tests.py
- sql/core/src/main/scala/org/apache/spark/sql/DataFrameNaFunctions.scala 28 additions, 2 deletions...ain/scala/org/apache/spark/sql/DataFrameNaFunctions.scala
- sql/core/src/test/scala/org/apache/spark/sql/DataFrameNaFunctionsSuite.scala 21 additions, 0 deletions...cala/org/apache/spark/sql/DataFrameNaFunctionsSuite.scala
Loading
Please register or sign in to comment