[Python] Getting some columns as raw data while others converted to pandas types

Discussão em 'Python' iniciado por Stack, Agosto 27, 2025.

  1. Stack

    Stack Membro Participativo

    Is there a way in KDB/pykx to get only some columns as raw data while get others converted to pandas types?

    In the example below, I want to be able to do what is shown in the last line (for variable d3), i.e. only get some columns as raw data:

    import pykx as kx
    q = kx.SyncQConnection(host = 'localhost', port = 8888, timeout = 888.8)
    cmd = 'select from table where date=2025.04.30'
    d1 = q(cmd).pd() # all columns converted to pandas types
    d2 = q(cmd).pd(raw=True) # all columns returned as raw data
    d3 = q(cmd).pd(raw=['col1','col2','col3']) # is it possible to get only some columns as raw ?

    Continue reading...

Compartilhe esta Página