我想在Spark中获取IRQ。如何减去两个值(double或int)?
我尝试了下面的代码,但只有错误:
scala> Q1
res103: org.apache.spark.sql.Row = [11.09314]
scala> Q3
res104: org.apache.spark.sql.Row = [34.370419]
scala> val IRQ = Math.abs(Q3-Q1)
<console>:43: error: value - is not a member of org.apache.spark.sql.Row
val IRQ = Math.abs(Q3-Q1)
答案 0 :(得分:0)