I have a dataframe and I want to use one of the replace() function of
org.apache.spark.sql.DataFrameNaFunctions
on that dataframe.
Problem: I don't get these methods in intelligence (suggestions) with dataframe's instance. I imported that class explicitly.
I am not able to find any stuff which can give me some demonstration of how to use these functions or how to cast dataframe to type of DataFrameNaFunctions
.
I tried to cast it using asInstanceof[]
method but it throws exception.