我想选择一个列,可能是第1列,但不知道名称。
如何访问(A)该列的数据和(B)其名称?
非常感谢您的帮助
亲切的问候 詹斯
答案 0 :(得分:0)
24/03/2019
let
src1 = #table({"k1", "v1", "z3"}, {{"k11", 11, 10}, {"k12", 12, 20}, {"k13", 13, 30}, {"k14", 14, 40}}),
cols_all = Table.ColumnNames(src1),
col_indexed = cols_all{2},
table_final = Table.SelectColumns(src1, col_indexed)
in
table_final