I would like to access to the min and max of a specific column from my dataframe but I don\'t have the header of the column, just its number, so I should I do using scala ?
In Java, we have to explicitly mention org.apache.spark.sql.functions that has implementation for min and max:
org.apache.spark.sql.functions
min
max
datasetFreq.agg(functions.min("Frequency"), functions.max("Frequency")).show();