Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2015 03:00 PM
You can use the
DataFrame.na.fill() method in Scala and the DataFrame.fillna() method in Python.Here are the relevant links:
Scala:
https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrame
https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameNaFunctions
Python:
http://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrame.fillna