📅  最后修改于: 2022-03-11 14:57:53.682000             🧑  作者: Mango
val selectedColumnName = df.columns(q) //pull the (q + 1)th column from the columns array
df.agg(min(selectedColumnName), max(selectedColumnName))