kdb - kdb: get column names of non-keyed table
问题描述
Given a non-keyed table like t:([]c1:`a`b;c2:10 20)
, is cols t
always equivalent to key flip t
?
(Asking as I saw several key flip t
's in a repo I'm working on)
解决方案
Yes, see the bold part of cols
below
k){$[.Q.qp x:.Q.v x;.Q.pf,!+x;98h=@x;!+x;11h=@!x;!x;!+0!x]}
推荐阅读
- laravel - “未定义属性或方法‘xxxx’。” 上
- azure-active-directory - Microsoft Graph API 访问令牌问题
- scala - 根据when条件过滤dataFrame
- office365 - 如何在 Office 加载项的“当前窗口”中打开文档而不是在新窗口中打开?
- laravel - 使用 file_get_contents 打开 .env
- java - 我不确定这个 java 行是做什么的
- html - 如何在html中的一张图片上放置多个不可见的链接?
- c++ - 80 位长 double 的浮点距离
- sql-server - 为什么找不到 SQL Server Studio 查询?
- .net-core - 将 .net 核心部署到 IIS