Huikang Xu
Huikang Xu

性别: 注册于 2023-01-18

向TA求助
20金币数
50 经验值
0个粉丝
主页被访问 139 次

2 个回答

0 赞同

怎样按因子值排序之后分成多组

上述代码的重复值个数统计部可以直接使用 nunique 函数实现: select *,asof(cutPoints(int(factor_value*100000),3),factor_value*100000)+1 as factor_quantile from tb context by date csort factor_value having nunique(factor_value*100000)>3

回答于 2024-01-12 09:56

0 赞同

如何将一条记录根据相邻两条记录时间间隔填充或扩容为多条记录?

可以使用 interval 填充达到上述效果,代码如下: t = table(`35412`35412`35412 as indCode, `H30356.SH`H30356.SH`H30356.SH as indexCode, `000001.SZ`000001.SZ`000001.SZ as code, 2014.06.30 2014.09.30 2014.12.31 as date, 0.0168 0.0153 0.0158 as weight, 1111111111 2222222222 33333333...

回答于 2024-01-12 09:43