2
在KDB中,我可以使用^替换Null为0,但这不适用于文本。有人知道怎么做这个吗?谢谢。如何用KDB中的空白替换空值?
注:
a:0n
0^a
0
`a^a
ERROR: 'type
(wrong type)
在KDB中,我可以使用^替换Null为0,但这不适用于文本。有人知道怎么做这个吗?谢谢。如何用KDB中的空白替换空值?
注:
a:0n
0^a
0
`a^a
ERROR: 'type
(wrong type)
可以使用相同的填充功能的字符串中替换空字符空字符是 “”
q)"_"^"Spaces are nulls"
"Spaces_are_nulls"
对于符号:
q)`n^`list```of``symbols```with`nulls
`list`n`n`of`n`symbols`n`n`with`nulls
在你的例子,它看起来像你想用符号替换空浮动。 类型混合使得这更加复杂。以下作品:
q)a:0n
q)anyTypeFill:{$[null y;x;y]}
q)anyTypeFill[`a;a]
`a
q)anyTypeFill[`a;] each 0n 1 2 0n 3 5 0n
`a
1f
2f
`a
3f
5f
`a