如何对KDB中的每一行应用max函数? [英] How to apply max function for each row in KDB?
本文介绍了如何对KDB中的每一行应用max函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想确保列x
中的所有值均不小于0.5,所以我这样做:
I want to ensure all values in column x
are no smaller than 0.5, so I do:
update x:max (x 0.5) from myTable
但这会导致错误(在 Studio for KDB + 中)
But this gives an error (in Studio For KDB+):
An error occurred during execution of the query.
The server sent the response:
type
Studio Hint: Possibly this error refers to wrong type, e.g `a+1
怎么了?
推荐答案
您可以尝试使用|
q)update x|0.5 from myTable
这篇关于如何对KDB中的每一行应用max函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文