Define function in scala using DataFrame type.

We tried to use a function that take a datframe as argument and return another dataframe.

val function_test : ((DataFrame) => (DataFrame)) = (arg1: DataFrame) => {
// create new_df using arg1 (=DataFrame I pass in parameter)
new_df
}

But we got the error given below:
:32: error: not found: type DataFrame
val function_test : ((DataFrame) => (DataFrame)) = (arg1: DataFrame) => {
Is there a librairy that we would have to import to use DataFrame as a type for our function?
Thanks in advance.

Tagged:
Sign In or Register to comment.