可以使用pivot by子句
ID=rand(`a`b`c, 100) date=2015.08.07..2017.08.11 dates=rand(date, 100) x=rand(10.0,100) t=table(ID,dates,x) select x from t pivot by dates, ID
如果需要连续日期的面板数据,可以使用 panel函数(DolphinDB 1.30.0.0及以上版本支持):
panel( t.dates,t.ID,t.x,date)
更多面板数据的案例请参阅https://gitee.com/dolphindb/T...