1

How can i get the just the column headers of a table in KDB? Is there a special query for this? I am asking because when I pull the data from the table into python the column headers are lost. Thanks!

Rahul
  • 3,914
  • 1
  • 14
  • 25
S. Mac
  • 13
  • 2
  • 5

1 Answers1

2

If you're using one of the two regular python APIs for getting data from KDB, I think both implement a Flip class from which you can get the column names (usually there is an x which is an array of strings).

Otherwise cols tableName gives you list of symbols (which would be deserialized as an array of strings in python)

Manish Patel
  • 4,411
  • 4
  • 25
  • 48